ImageSaveOptions.PixelFormat

ImageSaveOptions.PixelFormat property

Gets or sets the format of the color data for each pixel in the image.

public PixelFormat PixelFormat { get; set; }

Examples

Shows how to set pixel format which is used during conversion into image formats.

var project = new Project(DataDir + "Project1.mpp");
var options = new ImageSaveOptions(SaveFileFormat.Tiff);
options.HorizontalResolution = 72;
options.VerticalResolution = 72;
options.PixelFormat = PixelFormat.Format24bppRgb;
project.Save(OutDir + "RenderProjectDataToFormat24bppRgb_out.tif", options);

See Also