TerminalImage class final

An explicitly owned decoded image backed by OpenTUI.

Call dispose when the image is no longer needed. Disposal is idempotent; every other member throws StateError after disposal.

Implemented types

Constructors

TerminalImage.decode(Uint8List data)
Decodes PNG, JPEG, WebP, or the first frame of a GIF synchronously.
factory
TerminalImage.fromRgba(Uint8List pixels, {required int pixelWidth, required int pixelHeight, required int rowStride})
Creates an image by copying straight-alpha RGBA bytes synchronously.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
info → TerminalImageInfo
Decoded metadata.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Release resources held by this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited