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.
方法
ExportToImageAsync(GraphicsView, DiagramExportOptions) : Task<byte[]>
Exports a diagram view to an image byte array.
- diagramView
- The GraphicsView containing the diagram.
- options
- Export options.
返回值: 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.
返回值: 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.
返回值: 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.
返回值: True if successful.