Question Default Image.Save format

paridhillon

New member
Joined
Apr 3, 2009
Messages
3
Programming Experience
3-5
Hi,

I have used following line of code to save my image as a .png file on my hard-disk:
sampleImage.Save("C:\SampleDir\Sample.Png", Imaging.ImageFormat.Png)

I noticed another overload for Image saving where we just specify the file-name and not the format ie: i could do with the code as:
sampleImage.Save("C:\SampleDir\Sample.Png")

I wanted to know what is the difference between both the LOCs?
What is the default image format taken up with the latter LOC?
 
Back
Top