public static void DrawImageTransparent(Graphics gx, Image image, Rectangle destRect) { ImageAttributes imageAttr = new ImageAttributes(); Color transpColor = GetTransparentColor(image); imageAttr.SetColorKey(transpColor, transpColor); gx.DrawImage(image, destRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, imageAttr); } private static Color GetTransparentColor(Image image) { return ((Bitmap)image).GetPixel(image.Width - 1, image.Height - 1); }