Save

Save(string)

Saves the image to a file.

public void Save(string filename)
ParameterTypeDescription
filenameStringThe path to the file where the image will be saved.

See Also


Save(string, ImageFormat)

Saves the image to a file in the specified format.

public void Save(string filename, ImageFormat format)
ParameterTypeDescription
filenameStringThe path to the file where the image will be saved.
formatImageFormatThe image format.

See Also


Save(Stream, ImageFormat)

Saves the image to a stream in the specified format.

public void Save(Stream stream, ImageFormat format)
ParameterTypeDescription
streamStreamThe stream where the image will be saved.
formatImageFormatThe image format.

See Also


Save(string, ImageFormat, int)

Saves the image to a file in the specified format and quality.

public void Save(string filename, ImageFormat format, int quality)
ParameterTypeDescription
filenameStringThe path to the file where the image will be saved.
formatImageFormatThe image format.
qualityInt32The quality of the saved image (0 to 100). This parameter only affects saving in Jpeg; for all other formats, it is ignored.

See Also


Save(Stream, ImageFormat, int)

Saves the image to a stream in the specified format and quality.

public void Save(Stream stream, ImageFormat format, int quality)
ParameterTypeDescription
streamStreamThe stream where the image will be saved.
formatImageFormatThe image format.
qualityInt32The quality of the saved image (0 to 100). This parameter only affects saving in Jpeg; for all other formats, it is ignored.

See Also