Skip to content
ConsoleMonster
Class

PngFrameExportProvider

ConsoleMonster.Graphics

Namespace
ConsoleMonster.Graphics
Assembly
ConsoleMonster.Graphics
Modifiers
sealed

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 optional
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 required
options ConsoleMonster.Export.ExportOptions? = null optional

Returns

byte[]
public byte[] Export(CellBuffer frame, ExportOptions? options = null) #

Exports an already rendered frame.

Parameters

frame ConsoleMonster.Canvas.CellBuffer required
options ConsoleMonster.Export.ExportOptions? = null optional

Returns

byte[]
public static void Register() #

Registers the default PNG provider for the current application.

Properties

public GraphicsExportOptions? Options { get; } #

The typed settings; Frame is overridden only when explicit frame options are supplied.

public string Format { get; } #

The public format name used by the command and fluent API.