SixelImageDrawable class final
A Drawable that renders an image using Sixel Graphics.
Sixel is a legacy but widely supported bitmap graphics protocol for terminals. This drawable encodes the image into Sixel format and renders it within the specified columns and rows.
The image is automatically resized to fit the target cell dimensions before encoding, using the estimated cell pixel size to compute the appropriate Sixel pixel dimensions. Color quantization is applied to reduce the palette to at most maxColors entries.
- Implemented types
Constructors
Properties
- cellPixelHeight → int
-
Estimated pixel height of a single terminal cell.
final
- cellPixelWidth → int
-
Estimated pixel width of a single terminal cell.
final
- columns → int?
-
Width of the drawable in terminal columns.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → Image
-
The raw RGBA image data.
final
- maxColors → int
-
Maximum number of colors in the Sixel palette (1–256).
final
- rows → int?
-
Height of the drawable in terminal rows.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bounds(
) → Rectangle -
Returns the bounds required to draw this drawable.
override
-
draw(
Screen screen, Rectangle area) → void -
Draws this drawable into
screenwithinarea.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited