I'm using icons in icons in several places in my app. To make them more
professional looking I wanted to mask out their backgrounds. I had a little
trouble with the documentation on how to do this specific task, but I finally
got it to work after several attempts. However, I wonder if my solution is
more complicated than it needs to be. Does anyone know a simpler way to do
this?
And it works. It just looks kinda cheesy to me. =)
Yep. Another alternative is to use another bitmap which is only 2-bit to
define the masl, but I can never remember if the white or the black is what
defines mased pixels...
Also, if the file format defines a mask or a background colour (.bmp
doesn't) then wxBitmap and wxImage are supposed to use it automatically.
But I've never tried that either...