Image Transparent Background C. As you can see from this figure the transparent graphics shapes lines rectangle ellipse and text are drawn on top of an image. The code makes the system default transparent color transparent for mybitmap and then draws the bitmap to the screen.
If this is your situation it can be solved by setting the transparent image s parent property to be the background image. 2 select the background color here the left. Private bitmap smilebitmap frownbitmap.
Make the images backgrounds transparent.
Panel2 backcolor color fromargb 0 0 0 0 so image2 are now floating on image1 as transparency without the gray borders. The following code example is designed for use with windows forms and it requires painteventargse which is a parameter of the paint event handler. If you have two picturebox objects they both will have the form as their parent. Void maketransparent example1 painteventargs e create a bitmap object from an image file.