Table of Contents

Method EncodeTransmit

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

EncodeTransmit(Color[,], int)

Encodes a transmit-only (a=t) Kitty sequence: it sends the full image data under the given imageId without creating a placement. The image stays resident in the terminal so it can be displayed — and re-displayed with a different crop — via EncodePut(int, int, int, int, int, int, int, int) without re-sending the pixels. Used to pan/zoom a static image with tiny per-frame placement updates instead of re-transmitting the whole image every frame (which reads as a flash for large images).

public string EncodeTransmit(Color[,] pixels, int imageId)

Parameters

pixels Color[,]

The full source image to transmit, indexed as [x, y].

imageId int

The stable image id (the Kitty i key).

Returns

string

The complete Kitty APC transmit-only escape sequence (chunked).