Image transparency not properly working on Windows

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.


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

The code is pretty easy:

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

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


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

1 Like