ExportOptions

StockSharp.Xaml.Diagram.Avalonia.Export.DiagramImageExporter

Export options for diagram rendering.

Properties

BackgroundColor
public Color? BackgroundColor { get; set; }
value = exportOptions.BackgroundColor
exportOptions.BackgroundColor = value

Background color. Null for transparent.

Format
public ImageFormat Format { get; set; }
value = exportOptions.Format
exportOptions.Format = value

Image format.

IncludeGrid
public bool IncludeGrid { get; set; }
value = exportOptions.IncludeGrid
exportOptions.IncludeGrid = value

Whether to include a grid background.

JpegQuality
public int JpegQuality { get; set; }
value = exportOptions.JpegQuality
exportOptions.JpegQuality = value

JPEG quality (0-100, only used for JPEG format).

Padding
public double Padding { get; set; }
value = exportOptions.Padding
exportOptions.Padding = value

Padding around the diagram.

Scale
public double Scale { get; set; }
value = exportOptions.Scale
exportOptions.Scale = value

Scale factor (1.0 = 100%).