How do I draw a single color transparently?
-
I want to draw an image over a background but not the whole image but only the actual content. I want to specify a color of the foreground image which is transparent and won't be drawn onto the background. I thought of using a ColorMatrix but I don't really know how I'd do it with this class. I already used the class to change the alpha value for a whole image, but not for a single color of an image. How do you use the ColorMatrix to draw a single color transparently? Or is another approach better? Thanks in advance.
-
I want to draw an image over a background but not the whole image but only the actual content. I want to specify a color of the foreground image which is transparent and won't be drawn onto the background. I thought of using a ColorMatrix but I don't really know how I'd do it with this class. I already used the class to change the alpha value for a whole image, but not for a single color of an image. How do you use the ColorMatrix to draw a single color transparently? Or is another approach better? Thanks in advance.
-
Thanks, that works great!