png -> bmp

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

Moderators: helmut, XnTriq, xnview

Post Reply
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

png -> bmp

Post by Serg »

I need to convert png to bmp in memory.
How it to do?
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

Post 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...
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

like that:

Code: Select all

HBITMAP hBitmap; 
error = gflConvertBitmapIntoDDB( pic, &hBitmap );
Pierre.
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

Post by Serg »

xnview wrote:like that:

Code: Select all

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