DiagramImageExporter
StockSharp.Xaml.Diagram.Avalonia.Export
Exports diagrams to image files.
方法
ExportToBytes(ICompositionModel, ExportOptions) : byte[]
Export a diagram to a byte array.
- model
- The composition model to export.
- options
- Export options. If null, uses defaults.
返回值: The image data as bytes.
ExportToFile(ICompositionModel, string, ExportOptions)
Export a diagram to a file.
- model
- The composition model to export.
- filePath
- The output file path.
- options
- Export options. If null, uses defaults.
ExportToStream(ICompositionModel, Stream, ExportOptions)
Export a diagram to a stream.
- model
- The composition model to export.
- stream
- The output stream.
- options
- Export options. If null, uses defaults.
RenderToBitmap(ICompositionModel, ExportOptions) : RenderTargetBitmap
Render a diagram to a bitmap.
- model
- The composition model to render.
- options
- Export options. If null, uses defaults.
返回值: The rendered bitmap, or null if rendering failed.