DiagramImageExporter

StockSharp.Xaml.Diagram.Maui.Export

Exports diagrams to images in MAUI. Note: Full image export implementation is platform-specific and may require additional platform-specific code.

Methoden

ExportToImageAsync(GraphicsView, DiagramExportOptions) : Task<byte[]>

Exports a diagram view to an image byte array.

diagramView
The GraphicsView containing the diagram.
options
Export options.

Rückgabe: Image bytes or null if export failed.

ExportToJpegAsync(GraphicsView, DiagramExportOptions) : Task<byte[]>

Exports a diagram view to a JPEG byte array.

diagramView
The GraphicsView containing the diagram.
options
Export options.

Rückgabe: JPEG image bytes or null if export failed.

ExportToPngAsync(GraphicsView, DiagramExportOptions) : Task<byte[]>

Exports a diagram view to a PNG byte array.

diagramView
The GraphicsView containing the diagram.
options
Export options.

Rückgabe: PNG image bytes or null if export failed.

SaveToFileAsync(GraphicsView, string, DiagramExportOptions) : Task<bool>

Saves a diagram view to a file.

diagramView
The GraphicsView containing the diagram.
filePath
Target file path.
options
Export options.

Rückgabe: True if successful.