Search found 2 matches

by bertrand
Mon Nov 19, 2007 9:30 am
Forum: GFL SDK
Topic: Problem creating png with alpha channel.
Replies: 3
Views: 1888

Re: Problem creating png with alpha channel.

xnview wrote:Which function do you use for BitmapToDIB?
I use GetDIBits, but it seems to be OK, the DIB was 32 bits/pixels, and I also trie directly "gflConvertDDBIntoBitmap" with the HBITMAP ghBitmap3d, without success.
Bertrand
by bertrand
Sat Nov 17, 2007 4:37 pm
Forum: GFL SDK
Topic: Problem creating png with alpha channel.
Replies: 3
Views: 1888

Problem creating png with alpha channel.

I want to use GFLSDK (v2.70) for create png file with alpha channel from DIB on window.
Here is my code:


------------------------------
GFLC_SAVE_PARAMS save_option;
GFL_ERROR gflError;
save_option.setFormat(gflGetFormatIndexByName("png"));
GFLC_BITMAP * bitmap = new GFLC_BITMAP();
gflError ...