ImageSaveOptions.HorizontalResolution

ImageSaveOptions.HorizontalResolution property

Gets or sets the horizontal resolution in dpi.

public float HorizontalResolution { 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