Skip to content
ConsoleMonster
Class

ImageComposition

ConsoleMonster.Graphics

Namespace
ConsoleMonster.Graphics
Assembly
ConsoleMonster.Graphics
Modifiers
static

Composes decoded images through the same content builder as core widgets.

Inheritance

  • object
  • ImageComposition

Methods

Image 2 overloads
public static ContentBuilder Image(ContentBuilder content, string path, Action<ConsoleImage>? configure = null) #

Reads an image and adds it to a layout.

Parameters

content ConsoleMonster.Layout.ContentBuilder required
The destination content builder.
path string required
The encoded image file.
configure System.Action<ConsoleMonster.Graphics.ConsoleImage>? = null optional
Optional typed image configuration.

Returns

ContentBuilder The same content builder.
public static ContentBuilder Image(ContentBuilder content, ConsoleImage image) #

Adds an existing image without decoding it again.

Parameters

content ConsoleMonster.Layout.ContentBuilder required
The destination content builder.
image ConsoleMonster.Graphics.ConsoleImage required
The image to compose.

Returns

ContentBuilder The same content builder.