I’m currently trying to draw stuff to a transparent image in JUCE. So I have an Image object, and then a Graphics object taking the Image in the constructor.
The Image is ARGB and should have transparent parts. Sometimes I want to “clear” a rectangular section of the image, meaning I want to completely nix the pixels in that region and replace them all with transparent black or something.
However, just changing the colour to transparent black and calling fillRect doesn’t work - it just alpha-blends the transparent rectangle with whatever was already there, meaning that it does nothing. I need something that actually erases what was there originally and replaces it with a transparent rectangle, meaning all of the pixels are changed to 0x00000000 or what have you.
Is there any simple way to do this?
Thanks