2
Answers

Drawing an image to the screen

Box

Box

13y
1.2k
1
Hi
im still learning a lot but a lot of tutorials on the net dont feelc complete or are all aimed at people who know a lot anyway.

I have a gif image. i want it displayed on screen but not using a picture box. This is the code Ive managed to come up with but nothing happends with it. no errors. just no pricture :( any help?

thanks

code:

Image gifImage = Image.FromFile("h:\\test.gif");

Graphics g = Graphics.FromImage(gifImage);

g.DrawImage(gifImage, 10, 10);

Answers (2)