Image.Save

Save(string)

Saves this Image to the specified file or stream.

public void Save(string filename)
ParameterTypeDescription
filenameStringA string that contains the name of the file to which to save this Image.

See Also


Save(string, ImageFormat)

Saves this Image to the specified file in the specified format.

public void Save(string filename, ImageFormat format)
ParameterTypeDescription
filenameStringA string that contains the name of the file to which to save this Image.
formatImageFormatThe ImageFormat for this Image.

See Also


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)
ParameterTypeDescription
filenameStringA string that contains the name of the file to which to save this Image.
encoderImageCodecInfoThe ImageCodecInfo for this Image.
encoderParamsEncoderParametersAn EncoderParameters to use for this Image.

See Also


Save(Stream, ImageFormat)

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

public void Save(Stream stream, ImageFormat format)
ParameterTypeDescription
streamStreamThe Stream where the image will be saved.
formatImageFormatAn ImageFormat that specifies the format of the saved image.

See Also


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)
ParameterTypeDescription
streamStreamThe Stream where the image will be saved.
encoderImageCodecInfoThe ImageCodecInfo for this Image.
encoderParamsEncoderParametersAn EncoderParameters that specifies parameters used by the image encoder.

See Also