Table of Contents

Method GetImageId

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

GetImageId(string)

Derives a stable, positive, non-zero Kitty image id from the given string identifier.

public static int GetImageId(string id)

Parameters

id string

The string identifier (e.g. a Id).

Returns

int

A positive, non-zero image id suitable for the Kitty i key.

Remarks

The same id always maps to the same image id, so a view's placement can be consistently replaced or deleted across renders.