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;
}