...

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,380
Location
Norway
Programming Experience
10+
3: See post 6 in this thread: http://www.vbdotnetforums.com/graphics-gdi/20813-image-transparent-apply-other-image.html

4: Using an image format that supports transparency such as the Png and simply have those areas transparent solves this without any further ado. If you can't provide transparent source image you can use the Bitmap.MakeTransparent Method to turn all pixel of a specified color into transparent. It is also possible to use ImageAttributes.SetColorKey Method to do the same for a range of colors.
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,380
Location
Norway
Programming Experience
10+
'm curious as to what the following sections do and whether or not I need to modify them in regards to my situation:
Do you need to change all Red colors to Green? If not you don't need this.

The "0.5F" value in the ColorMatrix is the transparency blend, ie 50%.
 
Top Bottom