Hi,

I don't want to load png-resources in resourcetype "RCData". How can I change the lib to load resources in typ "IMAGES" instead ?
Sorry, is it allowed to change the lib ?

Greetings,
Nordwind64
Posted on 2002-08-06 14:59:46 by Nordwind64
You may edit the library in any way you like for your own use, but please don't distribute modified versions (that is, in source/library form)..
Alternatively, you can load the resource yourself to get a pointer to the data, and then call PNG_LoadCustom(pngInfo, pointer to data, length of data) instead of LoadResource.

Thomas
Posted on 2002-08-06 15:40:14 by Thomas
Thank you, Thomas !!! PNG_LoadCustom is a very good idea !

No no, I don't want to distribute the pnglib... I only want to use it in my program.

Pnglib is cool !!!

Greetings,
Nordwind64
Posted on 2002-08-06 15:47:57 by Nordwind64
Hi again,

how can I use the png-alphachannels via pnglib ?

Thanks,
Nordwind64
Posted on 2002-08-07 13:35:46 by Nordwind64
32-bit images (RGBA) are converted to 32-bit bitmaps by default. But when you draw this bitmap windows ignores the alpha channel so you'll have to create your own function that takes the alpha values into account, or use AlphaBlend (win98+/2k+ only).

Thomas
Posted on 2002-08-07 14:01:25 by Thomas
Ok, thank you, Thomas !
I will create it via DIB.

Why converting to 32-bit? Why not only to 24-Bit?

Nordwind64
Posted on 2002-08-07 15:04:49 by Nordwind64
Why converting to 32-bit? Why not only to 24-Bit?


What do you mean? :confused: 32-bit PNGs are converted to 32-bit bitmaps, 24-bit PNGs are converted to 24-bit bitmaps..

Thomas
Posted on 2002-08-09 13:13:58 by Thomas