GFL_LOAD_PARAMS::GFL_LOAD_CALLBACKS::AllocateBitmap
Posted: Mon Apr 09, 2012 1:23 pm
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:
It worked with no problem. But in GFL 3.40 AllocateBitmap seems to be ignored. Callback function is not called. Is it a bug
or a feature? And is there any walk-around?
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;
}
