Add Transparent .gif files to vb.net

K

kmercer46

I'm workin on a game, and i have faced a small problem, which is:


I want to put a gif animation in my game but i want this animation to
be with a transparent background, and keep animating


I used this


Dim pic As Bitmap = New Bitmap(Application.StartupPath &
"\Pix\stick1.gif" )


But it doesnt work for gif animations


It takes only the first frame of the gif file, or it take it all (using

picturebox) but with opaque background.


Thanks.
 
H

Herfried K. Wagner [MVP]

I want to put a gif animation in my game but i want this animation to
be with a transparent background, and keep animating

Take a look at the 'ImageAnimator' class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top