webmaster442.windowsterminal.imagesharp.imagesharpsixelimage - webmaster442/WindowsTerminal GitHub Wiki

< Back


ImageSharpSixelImage

Namespace: Webmaster442.WindowsTerminal.ImageSharp

An implementation of using SixLabors.ImageSharp for image processing.

public sealed class ImageSharpSixelImage : Webmaster442.WindowsTerminal.ISixelImage

Inheritance ObjectImageSharpSixelImage Implements ISixelImage Attributes NullableContextAttribute, NullableAttribute

Properties

Width

public int Width { get; }

Property Value

Int32

Height

public int Height { get; }

Property Value

Int32

Methods

GetColor(Int32, Int32)

public Color GetColor(int x, int y)

Parameters

x Int32

y Int32

Returns

Color

FromFile(String, Nullable<SixelOptions>)

public static ISixelImage FromFile(string filePath, Nullable<SixelOptions> sixelOptions)

Parameters

filePath String

sixelOptions Nullable<SixelOptions>

Returns

ISixelImage

FromStream(Stream, Nullable<SixelOptions>)

public static ISixelImage FromStream(Stream stream, Nullable<SixelOptions> sixelOptions)

Parameters

stream Stream

sixelOptions Nullable<SixelOptions>

Returns

ISixelImage

ToString()

Encode the image to a Sixel string representation.

public string ToString()

Returns

String Sixel representation of the image


< Back