GFL_LOAD_PARAMS::GFL_LOAD_CALLBACKS::AllocateBitmap

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

Moderators: XnTriq, helmut, xnview

Post Reply
Zai++
Posts: 21
Joined: Fri Nov 18, 2005 4:57 pm
Location: Moscow

GFL_LOAD_PARAMS::GFL_LOAD_CALLBACKS::AllocateBitmap

Post by Zai++ »

Continuing 2.90 to 3.40 upgrade.
Good evening.

Loading files with gflLoadBitmap I used GFL_LOAD_PARAMS::GFL_LOAD_CALLBACKS::AllocateBitmap to load bitmap into my own structure. My Callback function was something like this:

Code: Select all

void* GFLAPI MY_CALLBACK_FUNCTION(GFL_INT32 width,
               GFL_INT32 height, GFL_INT32 number_component,
               GFL_INT32 bits_per_component, GFL_INT32 padding,
               GFL_INT32 bytes_per_line, void * user_params)
{
 MY_STRUCTURE *L=reinterpret_cast<MY_STRUCTURE*>(user_params);
 L->Resize(width,height);
 void *addr=L->GetDataAddress();
 return addr;
}
It worked with no problem. But in GFL 3.40 AllocateBitmap seems to be ignored. Callback function is not called. Is it a bug :bug: or a feature? And is there any walk-around?
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: GFL_LOAD_PARAMS::GFL_LOAD_CALLBACKS::AllocateBitmap

Post by xnview »

Right it seems that i've removed the code :( I'll fix it
Pierre.
Post Reply