DiagramImageExporter
StockSharp.Xaml.Diagram.Avalonia.Export
図をイメージファイルにエクスポートします。
メソッド
ExportToBytes
public static byte[] ExportToBytes(ICompositionModel model, ExportOptions options)
result = DiagramImageExporter.ExportToBytes(model, options)
バイト配列に図をエクスポートします。
- model
- エクスポートするコンポジションモデル。
- options
- エクスポートオプション。null の場合、デフォルト値を使用します。
戻り値: バイトとして画像データ。
ExportToFile
public static void ExportToFile(ICompositionModel model, string filePath, ExportOptions options)
DiagramImageExporter.ExportToFile(model, filePath, options)
図をファイルにエクスポートします。
- model
- エクスポートするコンポジションモデル。
- filePath
- 出力ファイルパス。
- options
- エクスポートオプション。null の場合、デフォルト値を使用します。
ExportToStream
public static void ExportToStream(ICompositionModel model, Stream stream, ExportOptions options)
DiagramImageExporter.ExportToStream(model, stream, options)
図をストリームにエクスポートします。
- model
- エクスポートするコンポジションモデル。
- stream
- 出力ストリーム。
- options
- エクスポートオプション。null の場合、デフォルト値を使用します。
RenderToBitmap
public static RenderTargetBitmap RenderToBitmap(ICompositionModel model, ExportOptions options)
result = DiagramImageExporter.RenderToBitmap(model, options)
ビットマップに図をレンダリングします。
- model
- レンダリングするコンポジションモデル。
- options
- エクスポートオプション。null の場合、デフォルト値を使用します。
戻り値: レンダリングされたビットマップ、または、レンダリングが失敗した場合の null です。