Exmple: We have an Image with "black ball on a white background"
We set the image as a BackgroundImage on a panel
I want the ball to be displayed but not the white background. Tried a lot of methods, but nothing seems to work.
The MakeTransparent() method just makes the white color the background color of the main window.
The closest thing I found is to achieve this and be able to overload the onPaint() handler the way I want, following instructions found somewhere.
The problem is that I would need then a DrawImage() methods that excludes a specific Color, which I don't think it exists.
My last effort would be to use GetPixel() and DrawPixel() and simply not draw the pixel with the specific color I want to exclude. But would like to do this automatically if possible.