c# - How to know image type/format by using Image class -


I am working with an image using System.Drawing.Image and I would like to know how I I can get it (ex: GIF, JPG ...)

  image myImage; Format = myImage.SomethingThatTellsTheImageFormat;  

Or at least, there is no way to say whether it is .gif or not

tks

Although I'm not a C # user, the API suggests that the property is the way to go. RawFormat property is one, which you can compare to the picture (public).


Comments