DiagramImageExporter
StockSharp.Xaml.Diagram.Maui.Export
MAUI で図を画像をエクスポートします。注記: 完全な画像エクスポート実装はプラットフォーム固有のもので、追加のプラットフォーム固有のコードが必要な場合があります。
メソッド
ExportToImageAsync
public static Task<byte[]> ExportToImageAsync(GraphicsView diagramView, DiagramExportOptions options)
result = DiagramImageExporter.ExportToImageAsync(diagramView, options)
図ビューをイメージバイト配列にエクスポートします。
- diagramView
- The GraphicsView containing the diagram.
- options
- エクスポートオプション。
戻り値: エクスポートが失敗した場合、イメージバイトまたはnull。
ExportToJpegAsync
public static Task<byte[]> ExportToJpegAsync(GraphicsView diagramView, DiagramExportOptions options)
result = DiagramImageExporter.ExportToJpegAsync(diagramView, options)
JPEG バイト配列に図表をエクスポートします。
- diagramView
- The GraphicsView containing the diagram.
- options
- エクスポートオプション。
戻り値: JPEGイメージバイトやnullが失敗した場合。
ExportToPngAsync
public static Task<byte[]> ExportToPngAsync(GraphicsView diagramView, DiagramExportOptions options)
result = DiagramImageExporter.ExportToPngAsync(diagramView, options)
図ビューを PNG バイト配列にエクスポートします。
- diagramView
- The GraphicsView containing the diagram.
- options
- エクスポートオプション。
戻り値: PNGイメージバイトやnullが失敗した場合。
SaveToFileAsync
public static Task<bool> SaveToFileAsync(GraphicsView diagramView, string filePath, DiagramExportOptions options)
result = DiagramImageExporter.SaveToFileAsync(diagramView, filePath, options)
図ビューをファイルに保存します。
- diagramView
- The GraphicsView containing the diagram.
- filePath
- ターゲットファイルパス。
- options
- エクスポートオプション。
戻り値: 成功すれば本当。