Box

Box

  • NA
  • 51
  • 41.8k

Drawing an image to the screen

Aug 11 2011 7:34 AM
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)