TermBuf::Image
Stability: stable — changes only in a major release.
Pixels ready to be sent to a terminal that draws them.
The shard does not decode or scale anything. An application hands over the bytes it already has, says what they are, and says how many cells to draw them across; the terminal does the scaling.
Constructors
Pixels in format. A raw format needs its dimensions and exactly as many
bytes as they imply; Png reads both out of the file. .rgb, .rgba
and .png say the same thing more plainly.
Three bytes a pixel, row by row from the top left.
Instance methods
Pixel dimensions. A terminal needs these for the raw formats and reads
them out of the file for Png, where they may be left at zero.
Pixel dimensions. A terminal needs these for the raw formats and reads
them out of the file for Png, where they may be left at zero.