Image transparency not properly working on Windows


#1

Hi guys,
in a plugin I have a custom component that draws an image with transparent background and a floating object in it.

On OSX no problems at all… the image has a transparent background as expected.

35

On Windows, I don’t get a full transparency image and it shows this way:
43

The code is pretty easy:

        waveformImage = Image (Image::RGB,
                               jmax (1, getWidth()), jmax (1, getHeight()),
                               true);
        waveformImage.clear(waveformImage.getBounds(), Colours::transparentBlack);

Then I have a g.DrawImageAt on the paint() method.
Is there something I’m missing?

Thanks!


#2

ok, spotted while posting… looks like on windows I have to explicitly set the image as ARGB in order to get full transparency.