Skip to content

Drawing an image to the screen

Box

Asked Aug 11, 2011, 3:34 AM EDT2 answers
Share
LinkedInX
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:

Code
Image gifImage = Image.FromFile("h:\\test.gif");
Graphics g = Graphics.FromImage(gifImage);
g.DrawImage(gifImage, 10, 10);

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.