[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

Question about Saving image after it has been loaded.

Paul Beard

12/30/2004 9:32:00 PM

If I load an image using Image.Load(), and then call Image.Save() to save
the image back out with a new filename, will the image be saved in its
original format or do I have to explicitly add the ImageFormat argument to
Save?

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------


1 Answer

Bob Powell

12/31/2004 1:58:00 AM

0

You should explicitly specify the image format.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tips...

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/f...

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





"Ken Varn" <nospam> wrote in message
news:%23g2oabr7EHA.2540@TK2MSFTNGP09.phx.gbl...
> If I load an image using Image.Load(), and then call Image.Save() to save
> the image back out with a new filename, will the image be saved in its
> original format or do I have to explicitly add the ImageFormat argument to
> Save?
>
> --
> -----------------------------------
> Ken Varn
> Senior Software Engineer
> Diebold Inc.
>
> EmailID = varnk
> Domain = Diebold.com
> -----------------------------------
>
>