System::Drawing::Image::Save method

Image::Save(const SharedPtr<System::IO::Stream>&, const Imaging::ImageCodecInfoPtr&, const Imaging::EncoderParametersPtr&) method

Saves the image represented by the current object to the specified stream using the specified encoder and encoder parameters.

void System::Drawing::Image::Save(const SharedPtr<System::IO::Stream> &stream, const Imaging::ImageCodecInfoPtr &encoder, const Imaging::EncoderParametersPtr &encoder_params)
ParameterTypeDescription
streamconst SharedPtr<System::IO::Stream>&A stream to save the image to
encoderconst Imaging::ImageCodecInfoPtr&The encoder to use
encoder_paramsconst Imaging::EncoderParametersPtr&The parameters of the encoder to used

See Also

Image::Save(const SharedPtr<System::IO::Stream>&, const Imaging::ImageFormatPtr&) method

Saves the image represented by the current object to the specified stream in the specified format.

void System::Drawing::Image::Save(const SharedPtr<System::IO::Stream> &stream, const Imaging::ImageFormatPtr &format)
ParameterTypeDescription
streamconst SharedPtr<System::IO::Stream>&A stream to save the image to
formatconst Imaging::ImageFormatPtr&A format to save the image in

See Also

Image::Save(const String&) method

Saves the image represented by the current object to the specified file in PNG format.

void System::Drawing::Image::Save(const String &filename)
ParameterTypeDescription
filenameconst String&The name of the file to save the image to

See Also

Image::Save(const String&, const Imaging::ImageCodecInfoPtr&, const Imaging::EncoderParametersPtr&) method

Saves the image represented by the current object to the specified file using the specified encoder and encoder parameters.

void System::Drawing::Image::Save(const String &filename, const Imaging::ImageCodecInfoPtr &encoder, const Imaging::EncoderParametersPtr &encoder_params)
ParameterTypeDescription
filenameconst String&The name of the file to save the image to
encoderconst Imaging::ImageCodecInfoPtr&The encoder to use
encoder_paramsconst Imaging::EncoderParametersPtr&The parameters of the encoder to use

See Also

Image::Save(const String&, const Imaging::ImageFormatPtr&) method

Saves the image represented by the current object to the specified file in the specified format.

void System::Drawing::Image::Save(const String &filename, const Imaging::ImageFormatPtr &format)
ParameterTypeDescription
filenameconst String&The name of the file to save the image to
formatconst Imaging::ImageFormatPtr&A format to save the image in

See Also