Method EncodePut
EncodePut(int, int, int, int, int, int, int, int)
Encodes a placement (a=p) that displays a crop of an already-transmitted image (see
EncodeTransmit(Color[,], int)) at the current cursor position. The source rectangle
(srcX,srcY,srcW,srcH) in
image pixels is scaled to fill destCols×destRows cells. A later
placement with the same (image id, placement id) replaces this one in place — so panning/zooming a
static image is a tiny, flash-free update rather than a full re-transmit.
public static string EncodePut(int imageId, int placementId, int srcX, int srcY, int srcW, int srcH, int destCols, int destRows)
Parameters
imageIdintThe id of the already-transmitted image.
placementIdintThe placement id; reusing it replaces the placement in place.
srcXintLeft edge of the source crop, in image pixels.
srcYintTop edge of the source crop, in image pixels.
srcWintWidth of the source crop, in image pixels.
srcHintHeight of the source crop, in image pixels.
destColsintNumber of columns to display the crop in.
destRowsintNumber of rows to display the crop in.
Returns
- string
The complete Kitty APC placement escape sequence.