How to freeze a animated GIF file in visual C sharp 2008?

I found out how to play a file in a picturebox.image but I want to know how pause it at its exact position. Now i found this website that had the code for getting the frames, but i need some sort of listing code. Here is the code for getting the frames.

Image gifImage = Image.FromFile(path);
FrameDimension dimension = new FrameDimension(gifImage.FrameDimensionsList[0]);
int frameCount = gifImage.GetFrameCount(dimension);

I know this is possible but I dont know the code is there any one with examples?

P.S. I dont want any Psuedo code or flow charts I would like to see a similar example like the code i gave above. I would appreciate it if you'd actually write the code in visual C sharp and copy and paste it on the text box with a bit of space between the equals and the statements.
sorry the 5th sentance starting from the (gifImage.FrameDimensionsList [0]);
 
Back
Top