Image Transparency
Posted: Wed Mar 04, 2009 6:51 pm
I was trying to draw an transparent image in the After_Draw event.
You have a bool parameter named transparent in the Draw method. But in your Draw method in the CanvasGDIplus class you are extracting the pixel color for position 1,1. In my case the image transparent color is at pixel 0,0.
I would like to suggest that you allow the programmer to pass in a color instead so there is no guess work as to what the transparent color is.
Thanks,
Kevin
You have a bool parameter named transparent in the Draw method. But in your Draw method in the CanvasGDIplus class you are extracting the pixel color for position 1,1. In my case the image transparent color is at pixel 0,0.
I would like to suggest that you allow the programmer to pass in a color instead so there is no guess work as to what the transparent color is.
Thanks,
Kevin