webmaster442.windowsterminal.isixelimage - webmaster442/WindowsTerminal GitHub Wiki
ISixelImage
Namespace: Webmaster442.WindowsTerminal
Represents an RGB image that can be encoded into Sixel format.
public interface ISixelImage
Attributes NullableContextAttribute
Properties
Width
Image width
public abstract int Width { get; }
Property Value
Height
Image height
public abstract int Height { get; }
Property Value
Methods
GetColor(Int32, Int32)
Image pixel color at the specified coordinates.
Color GetColor(int x, int y)
Parameters
x
Int32
Horizonatl coordinate
y
Int32
Vertical coordinate
Returns
Color Color at given position
FromStream(Stream, Nullable<SixelOptions>)
Create an ISixelImage from a stream.
ISixelImage FromStream(Stream stream, Nullable<SixelOptions> sixelOptions)
Parameters
stream
Stream
Image stream data
sixelOptions
Nullable<SixelOptions>
Sixel conversion options
Returns
ISixelImage An ISixelImage instance
FromFile(String, Nullable<SixelOptions>)
Create an ISixelImage from a file path.
ISixelImage FromFile(string filePath, Nullable<SixelOptions> sixelOptions)
Parameters
filePath
String
Image file path
sixelOptions
Nullable<SixelOptions>
>Sixel conversion options
Returns
ISixelImage An ISixelImage instance