ImageSaveOptions.JpegQuality

ImageSaveOptions.JpegQuality property

Gets or sets a JPEG quality. The allowed value range is 0..100.

public int JpegQuality { get; set; }

Examples

Shows how to set JPEG quality of output JPEG files.

var project = new Project(DataDir + "CreateProject2.mpp");

// in order to manipulate JPEG quality one can use ImageSaveOptions.JpegQuality property.
// The allowed value range is 0..100.
var options = new ImageSaveOptions(SaveFileFormat.Jpeg)
{
    JpegQuality = 50
};

project.Save(OutDir + "SaveProjectAsJPEG_out.jpeg", options);

See Also