PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

image loader plugins

helo edge,

i understand i can now enable and disable the image loaders in edge. my project currently just reads png images, how can i disable the other (jpg/gif/tga) loaders to make my exe size smaler?

sorry for asking the obvious, i could not find the anser on the www.edgelib.com.

tank you!

petre.
Petre wrote:i understand i can now enable and disable the image loaders in edge. my project currently just reads png images, how can i disable the other (jpg/gif/tga) loaders to make my exe size smaler?


Before you include edgemain.h define EDGE_NODEFAULTPLUGINS so the default plugins aren't loaded.

Then register the PNG loader using the OnPluginLoad event:

Code:

RESULT ClassMain::OnPluginLoad(ClassEDisplay *display)
{
ELoader_PNG *png = new ELoader_PNG;
if (png == NULL)
return(E_NOMEMORY);
if (!display->RegisterLoader(png))
{
delete png;
return(E_ERROR);
}
return(E_OK);
}


For more info on this please check this page: http://www.edgelib.com/index.php?node=f ... pluginload
Tank you for the information.

Petre.