MobileForms Toolkit Documentation

CompactImage.Save Method (Stream, ImageFormat, Int32)

Saves the image to a stream, specifying the file format and quality.

public void Save(
Stream stream,
ImageFormat imageFormat,
int quality
);

Parameters

stream
Stream object to save the image to.
imageFormat
File format to save the image to.
quality
Quality of the output file. The valid values are from 0 to 100.

Remarks

Method saves the image to the specified stream. The file format must also be specified.

The quality parameter is only relevant for those file formats which use lossy compression. It is set in percentage, so the valid values are 0 to 100.

See Also

CompactImage Class | Resco.Controls.ImageBox Namespace | CompactImage.Save Overload List