Vampyre Imaging Library Forum

Imaging Category => Bugs And Other Insects => Topic started by: heju on 9 February 2019, 11:31:51

Title: saving rgb with alpha channel to bitmap/png leads to blueish image
Post by: heju on 9 February 2019, 11:31:51
Hi,

somehow, when loading a rgb bitmap with alpha channel and writing it back to bitmap the result is very blueish and the resulting bitmap has no alpha channel, seems as if the alpha channel is interpreted as blue somewhere.

img.CreateFromFile('rgb128alpha.bmp');
img.SaveToFile('out.bmp');


I checked the bytes after creating, here everything seems correct, problem should be in the save procedure.

When trying to save to PNG, the resulting png has alpha, but is blueish as well.

Hope I find some more time to give more detailed description...

Greetings&Bye
Title: Re: saving rgb with alpha channel to bitmap/png leads to blueish image
Post by: Galfar on 11 February 2019, 00:37:30
Could you please upload your test BMP file here?