How can i Transparent Image in Picture Box

RajKumarJain

New member
Joined
Sep 5, 2007
Messages
4
Programming Experience
Beginner
How can i transparent any image placed on picture box by any specific color.
 
waynespangler, can you do that for only one specific color with ColorMatrix applied to a multicolor image? Show how.

What can be used is MakeTransparent method of Bitmap class for one specific color, or SetColorKey of ImageAttributes class for a range of colors. Here's one example:
VB.NET:
Dim bmp As New Bitmap(My.Resources.lite1)
bmp.MakeTransparent(Color.Blue)
PictureBox1.Image = bmp
 
Back
Top