Image.Save
Contents
[
Hide
]Save(string)
Saves this Image to the specified file or stream.
public void Save(string filename)
| Parameter | Type | Description | 
|---|---|---|
| filename | String | A string that contains the name of the file to which to save this Image. | 
See Also
- class Image
 - namespace System.Drawing
 - assembly Aspose.Drawing
 
Save(string, ImageFormat)
Saves this Image to the specified file in the specified format.
public void Save(string filename, ImageFormat format)
| Parameter | Type | Description | 
|---|---|---|
| filename | String | A string that contains the name of the file to which to save this Image. | 
| format | ImageFormat | The ImageFormat for this Image. | 
See Also
- class ImageFormat
 - class Image
 - namespace System.Drawing
 - assembly Aspose.Drawing
 
Save(string, ImageCodecInfo, EncoderParameters)
Saves this Image to the specified file, with the specified encoder and image-encoder parameters.
public void Save(string filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
| Parameter | Type | Description | 
|---|---|---|
| filename | String | A string that contains the name of the file to which to save this Image. | 
| encoder | ImageCodecInfo | The ImageCodecInfo for this Image. | 
| encoderParams | EncoderParameters | An EncoderParameters to use for this Image. | 
See Also
- class ImageCodecInfo
 - class EncoderParameters
 - class Image
 - namespace System.Drawing
 - assembly Aspose.Drawing
 
Save(Stream, ImageFormat)
Saves this image to the specified stream in the specified format.
public void Save(Stream stream, ImageFormat format)
| Parameter | Type | Description | 
|---|---|---|
| stream | Stream | The Stream where the image will be saved. | 
| format | ImageFormat | An ImageFormat that specifies the format of the saved image. | 
See Also
- class ImageFormat
 - class Image
 - namespace System.Drawing
 - assembly Aspose.Drawing
 
Save(Stream, ImageCodecInfo, EncoderParameters)
Saves this image to the specified stream, with the specified encoder and image encoder parameters.
public void Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
| Parameter | Type | Description | 
|---|---|---|
| stream | Stream | The Stream where the image will be saved. | 
| encoder | ImageCodecInfo | The ImageCodecInfo for this Image. | 
| encoderParams | EncoderParameters | An EncoderParameters that specifies parameters used by the image encoder. | 
See Also
- class ImageCodecInfo
 - class EncoderParameters
 - class Image
 - namespace System.Drawing
 - assembly Aspose.Drawing