Class ImageSaveOptions

Class ImageSaveOptions

Namespace: Aspose.Tasks.Saving
Assembly: Aspose.Tasks.dll (25.2.0)

Allows to specify additional options when rendering project pages to images.

public class ImageSaveOptions : SaveOptions

Inheritance

objectSimpleSaveOptionsSaveOptionsImageSaveOptions

Inherited Members

SaveOptions.BarStyles, SaveOptions.DrawNonWorkingTime, SaveOptions.EndDate, SaveOptions.FitTimescaleToEndOfPage, SaveOptions.FitContent, SaveOptions.Gridlines, SaveOptions.LegendDrawingOptions, SaveOptions.MarkCriticalTasks, SaveOptions.NonWorkingTimeColor, SaveOptions.PageCount, SaveOptions.PageSize, SaveOptions.IsPortrait, SaveOptions.PresentationFormat, SaveOptions.RollUpGanttBars, SaveOptions.StartDate, SaveOptions.TextStyles, SaveOptions.Timescale, SaveOptions.UseGradientBrush, SaveOptions.View, SaveOptions.ViewSettings, SaveOptions.CustomPageSize, SaveOptions.RenderToSinglePage, SimpleSaveOptions.project, SimpleSaveOptions.SaveFormat, SimpleSaveOptions.TasksComparer, SimpleSaveOptions.TasksFilter, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ImageSaveOptions(SaveFileFormat)

Initializes a new instance of the Aspose.Tasks.Saving.ImageSaveOptions class which can be used to save rendered images in TIFF, PNG, BMP or JPEG formats.

public ImageSaveOptions(SaveFileFormat saveFormat)

Parameters

saveFormat SaveFileFormat

Can be TIFF, PNG, BMP or JPEGAspose.Tasks.Saving.SaveFileFormat.

Exceptions

ArgumentException

Thrown of saveFormat is not a valid image format. The valid values are TIFF, PNG, BMP or JPEG.

Properties

FontSettings

Specifies font settings used when rendering project’s view.

public FontSettings FontSettings { get; }

Property Value

FontSettings

HorizontalResolution

Gets or sets the horizontal resolution in dpi.

public float HorizontalResolution { get; set; }

Property Value

float

JpegQuality

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

public int JpegQuality { get; set; }

Property Value

int

PageSavingCallback

Gets or sets a user-defined callback which is used to get an output stream for each rendered page.

public IPageSavingCallback PageSavingCallback { get; set; }

Property Value

IPageSavingCallback

Pages

Gets or sets a list of page numbers to save when saving project layout to separate files. All pages will be saved if this list is empty.

public List<int> Pages { get; set; }

Property Value

List<int&gt;

PixelFormat

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

public PixelFormat PixelFormat { get; set; }

Property Value

PixelFormat

ReduceFooterGap

Gets or sets a value indicating whether a gap between last task and the footer must be reduced.

public bool ReduceFooterGap { get; set; }

Property Value

bool

TiffCompression

Gets or sets the type of compression to apply when saving generated images to the TIFF format.

public TiffCompression TiffCompression { get; set; }

Property Value

TiffCompression

Remarks

Has effect only when saving to TIFF. The default value is Aspose.Tasks.Saving.ImageSaveOptions.TiffCompression?text=LZW.

VerticalResolution

Gets or sets the vertical resolution in dpi.

public float VerticalResolution { get; set; }

Property Value

float