Dim b As Bitmap = PictureBox1.Image create a bitmap object
b.MakeTransparent(color you want transparent) set a color transparent
PictureBox1.Image = b reassign modified picture to the pixbox
The key in this code is the MakeTransparent method of the bitmap object. Which will make any color you specify transparent on the bitmap.
I tried this code and all I got was a statict image showing only the first frame of the Gif Animation. It has the transparent background I wanted but unfortunately no animation or movement at all.
Do you know by any change how to modify this code so the GIF animation animates? Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.