I have some PNGs that I'm loading using datatypes, and the alpha channel is not being preserved. Is there any way to get datatypes to preserve the alpha channel? The PNGs definitely have an alpha channel (checked on a PC).
Hans
I have some PNGs that I'm loading using datatypes, and the alpha channel is not being preserved. Is there any way to get datatypes to preserve the alpha channel? The PNGs definitely have an alpha channel (checked on a PC).
Hans
Did you use PDTM_READPIXELARRAY with PBPAFMT_ARGB ?
I think the OS 4 datatypes should preserve alpha data. There is no datatype for OS 3 which does it, though. That's the reason for this: http://aminet.net/package/util/libs/pngalpha_lib
No, I'm getting the bitmap using PDTA_DestBitMap. I also have PDTA_Remap set to FALSE when opening the image, but the results are identical on my machine either way.
I thought that OS4 datatypes preserved the alpha data too. However, it's not happening.
Hans
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
http://keasigmadelta.co.nz/ - more of my software.
@thomas
I rewrote my code to use PDTM_READPIXELARRAY instead, and I now get the alpha channel. Thanks for the hint.
Hans
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
http://keasigmadelta.co.nz/ - more of my software.