Table of Contents

Class SixelEncoder

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

Encodes a images into the sixel console image output format.

public class SixelEncoder
Inheritance
SixelEncoder
Inherited Members

Constructors

SixelEncoder()

Properties

AvoidBottomScroll

Gets or sets a value indicating whether to avoid bottom scroll. When true and height is grater than PIXEL_HIGH (6), the encoder will subtract one sixel band (PIXEL_HIGH (6) rows). This can be used to avoid forcing the terminal to scroll when dumping sixel output starting at the bottom row. Default is false.

Quantizer

Gets or sets the quantizer responsible for building a representative limited color palette for images and for mapping novel colors in images to their closest palette color

Methods

EncodeSixel(Color[,])

Encode the given bitmap into sixel encoding

GetHeightInPixels(int, int)

Calculates the renderable height in pixels for sixel output based on the maximum available cell height and the vertical pixel density per cell.