gflLoadBitmapFrom[Memory/Handle] with Plugins

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

Post Reply
pber
Posts: 9
Joined: Tue Feb 26, 2008 5:27 pm

gflLoadBitmapFrom[Memory/Handle] with Plugins

Post by pber » Mon Mar 03, 2008 3:13 pm

Hello again,
I tryed to load pictures with the gflLoadBitmapFromMemory / gflLoadBitmapFromHandle functions.
I first tested .bmp files, and that was OK.
But when it came to .exr or .wlm files, the gflLoadBitmapFromMemory / gflLoadBitmapFromHandle returned GFL_ERROR_UNKOWN_FORMAT, as if they did not support the plugins.

Those files are compatible with the plugins, since I tryed to load them with gflLoadBitmap(...), and encountered no error in that process.

Are plugins loaded in the gflLoadBitmapFromMemory and gflLoadBitmapFromHandle ? (that would explain my difficulties to read those pictures :p)

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: gflLoadBitmapFrom[Memory/Handle] with Plugins

Post by xnview » Mon Mar 03, 2008 4:19 pm

pber wrote:Hello again,
I tryed to load pictures with the gflLoadBitmapFromMemory / gflLoadBitmapFromHandle functions.
I first tested .bmp files, and that was OK.
But when it came to .exr or .wlm files, the gflLoadBitmapFromMemory / gflLoadBitmapFromHandle returned GFL_ERROR_UNKOWN_FORMAT, as if they did not support the plugins.

Those files are compatible with the plugins, since I tryed to load them with gflLoadBitmap(...), and encountered no error in that process.

Are plugins loaded in the gflLoadBitmapFromMemory and gflLoadBitmapFromHandle ? (that would explain my difficulties to read those pictures :p)
Not all plugins are supported in GFL, such as WLM
To be able to load exr, you must have IlmImf.dll in Plugins folder
Pierre.

pber
Posts: 9
Joined: Tue Feb 26, 2008 5:27 pm

Post by pber » Mon Mar 03, 2008 5:12 pm

I have those, and the MSVCP71.DLL files.
That's maybe why I can load .exr files with the gflLoadBitmap function.
And I also have the Xwlm.dll file in the correct folder. Allowing me to load .wlm files with gflLoadBitmap function.

But I can find no reason for not being able of loading the files with the gflLoadBitmapFromHandle function.

User avatar
xnview
Author of XnView
Posts: 31598
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Mon Mar 03, 2008 5:24 pm

pber wrote:I have those, and the MSVCP71.DLL files.
That's maybe why I can load .exr files with the gflLoadBitmap function.
And I also have the Xwlm.dll file in the correct folder. Allowing me to load .wlm files with gflLoadBitmap function.

But I can find no reason for not being able of loading the files with the gflLoadBitmapFromHandle function.
Ok, some format like EXR works on file and not handle, so *FromHandle is not possible
Pierre.

pber
Posts: 9
Joined: Tue Feb 26, 2008 5:27 pm

Post by pber » Mon Mar 03, 2008 5:38 pm

Is there a list of formats unavailable to gflLoadBitmapFromHandle / gflLoadBitmapFromMemory ?

As far as I have tried, exr and wml seem not compatible.

Post Reply