4 out of 5 rated this helpful - Rate this topic

Image.Save Method

Saves this image to the specified stream in the specified format.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Save(String) Saves this Image to the specified file or stream.
Public method Save(Stream, ImageFormat) Saves this image to the specified stream in the specified format.
Public method Save(String, ImageFormat) Saves this Image to the specified file in the specified format.
Public method Save(Stream, ImageCodecInfo, EncoderParameters) Saves this image to the specified stream, with the specified encoder and image encoder parameters.
Public method Save(String, ImageCodecInfo, EncoderParameters) Saves this Image to the specified file, with the specified encoder and image-encoder parameters.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
BUG: Save method does not always preserve resolution
BUG: Depending on the image format chose, the Save method does not always preserve HorizontalResolution and VerticalResolution. For some applications (namely handling scanned documents) these parameters are very important. This is a real pain for writing image manipulation programs in GDI+.

I have seen this when saving TIFF with LZW compression. This is a new bug in Windows 7 - it worked fine in XP and Vista.

Our workaround is to use ImageMagick to reset the resolution in the saved file after saving it.