Page 1 of 1

png -> bmp

Posted: Thu Feb 07, 2008 9:38 am
by Serg
I need to convert png to bmp in memory.
How it to do?

Posted: Thu Feb 07, 2008 4:35 pm
by Serg
Anybody, please.... help

In my opinion

error = gflLoadBitmap( ... );
HBITMAP * hBitmap=0;
hBitmap = new HBITMAP[size_file];
error = gflConvertBitmapIntoDDB( pic, hBitmap );

but it's not work...

Posted: Fri Feb 08, 2008 8:27 am
by xnview
like that:

Code: Select all

HBITMAP hBitmap; 
error = gflConvertBitmapIntoDDB( pic, &hBitmap );

Posted: Fri Feb 08, 2008 3:43 pm
by Serg
xnview wrote:like that:

Code: Select all

HBITMAP hBitmap; 
error = gflConvertBitmapIntoDDB( pic, &hBitmap );
Thanks, It's work...