Table of Contents

Property SourceRect

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

SourceRect

When set (Kitty only), Pixels is the full source image and this is the crop of it (in image pixels) to display in DestinationCells. The image is transmitted to the terminal once; subsequent frames that only change the crop/destination (pan, zoom of a static image) emit a tiny placement update instead of re-sending the pixels, avoiding the per-frame flash. When null the legacy path is used: Pixels is the already-scaled region and is (re)transmitted each dirty frame.

public Rectangle? SourceRect { get; set; }

Property Value

Rectangle?