Skip to content
ConsoleMonster
Class

ConsoleImageFluent

ConsoleMonster.Graphics

Namespace
ConsoleMonster.Graphics
Assembly
ConsoleMonster.Graphics
Modifiers
static

The fluent methods of ConsoleImage, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • ConsoleImageFluent

Methods

public static ConsoleImage Height(ConsoleImage consoleImage, int value) #

Sets ConsoleImage.Height: The height in cells, or 0 to follow the width. With both set, the image fits inside that box.

Parameters

consoleImage ConsoleMonster.Graphics.ConsoleImage required
The instance.
value int required
The value.

Returns

ConsoleImage The same instance.

Examples

// C# initializer or property    // C# fluent
consoleImage.Height = value;     consoleImage.Height(value);
public static ConsoleImage Width(ConsoleImage consoleImage, int value) #

Sets ConsoleImage.Width: The width in cells, or 0 to follow ConsoleImage.Height or one cell per 10 pixels. Always within the space offered.

Parameters

consoleImage ConsoleMonster.Graphics.ConsoleImage required
The instance.
value int required
The value.

Returns

ConsoleImage The same instance.

Examples

// C# initializer or property    // C# fluent
consoleImage.Width = value;      consoleImage.Width(value);