SixelImageDrawable constructor

SixelImageDrawable(
  1. Image image, {
  2. int? columns,
  3. int? rows,
  4. int maxColors = SixelImage.maxPaletteSize,
  5. int cellPixelWidth = 8,
  6. int cellPixelHeight = 16,
})

Creates a Sixel protocol image drawable.

The image is resized to fit columns×rows cells before Sixel encoding. Use maxColors to limit the palette, and cellPixelWidth / cellPixelHeight to match the terminal's cell pixel dimensions.

Implementation

SixelImageDrawable(
  this.image, {
  this.columns,
  this.rows,
  this.maxColors = SixelImage.maxPaletteSize,
  this.cellPixelWidth = 8,
  this.cellPixelHeight = 16,
});