Thread: Question Default Image.Save format
View Single Post
  #1 (permalink)  
Old 05-04-2009, 1:43 AM
paridhillon paridhillon is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Apr 2009
Age: 26
Posts: 3
Reputation: 0
paridhillon is on a distinguished programming path ahead
Question Default Image.Save format

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?
Reply With Quote