GDI+ Alpha Blending and Images in VB.NET
In this article I will explain about Alpha Blending and Images in GDI+.
We often see a semitransparent date and place name on a photo. You can draw transparent graphics shapes on images using the same method: Create a graphics shape using semi- or non-opaque colors, and then draw on the image.
Listing 9.32 draws graphics shapes on an image. First we create an Image object and call DrawImage to draw an image. Then we create transparent pens and brushes and call fill and draw methods to draw graphics shapes. You can add the code in Listing 9.32 to any menu item or button click event handler.
LISTING 9.32: Drawing semitransparent graphics shapes on an image