I have a DIB handle. How can I convert it to TPNGObject
with preserving its transparency?
EDIT : I use method 2 in this solution Here
but the bitmap resulted is not transparent even if i set its Transparent
Flag with true
I have a DIB handle. How can I convert it to TPNGObject
with preserving its transparency?
EDIT : I use method 2 in this solution Here
but the bitmap resulted is not transparent even if i set its Transparent
Flag with true
I think it's going to start out something like this:
Then, if it's a 32 bit image, it will have an alpha channel, which you'll use for your transparency data.
Then, you copy the RGB data to the PNG object's scanline and the alpha data to the alpha scanline.