Class
PngFrameExportProvider
ConsoleMonster.Graphics
Connects the existing Graphics PNG encoder to frame and fluent export dispatch.
Inheritance
- object
- PngFrameExportProvider
Constructors
public PngFrameExportProvider(GraphicsExportOptions? options = null) #Creates a PNG provider with optional typed graphics settings.
Parameters
- options ConsoleMonster.Graphics.GraphicsExportOptions? = null
- Per-provider graphics settings, or the default documentation preset.
Methods
Export 2 overloads
public byte[] Export(IWidget widget, ExportOptions? options = null) #Exports a widget with its semantic structure intact.
Parameters
- widget ConsoleMonster.Layout.IWidget
- options ConsoleMonster.Export.ExportOptions? = null
Returns
byte[]public byte[] Export(CellBuffer frame, ExportOptions? options = null) #Exports an already rendered frame.
Parameters
- frame ConsoleMonster.Canvas.CellBuffer
- options ConsoleMonster.Export.ExportOptions? = null
Returns
byte[]public static void Register() #Registers the default PNG provider for the current application.