ImageBase<X extends ImageBase<X>> mixin

Backend-agnostic contract for ImageBase structs.

Must be mixed into every concrete platform implementation of a Raylib type to ensure a unified API surface across different backends.


Pixel data stored in CPU memory (RAM).

Superclass constraints

Properties

$state RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
bytesPerPixel int
Number of bytes per pixel, derived from format.
no setter
data Uint8List
Raw pixel data for the image.
getter/setter pair
dataLength int
Total byte length of data, equal to frameSize * frameCount.
no setter
format PixelFormat
Pixel format of the image data.
getter/setter pair
frameCount int
Number of frames in the image.
getter/setter pair
frameSize int
Byte size of a single frame, equal to width * height * bytesPerPixel.
no setter
hashCode int
The hash code for this object.
no setterinherited
height int
Height of the image in pixels.
getter/setter pair
mipmaps int
Number of mipmap levels. 1 means no mipmaps (base image only).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structName String
The Dart-side type name of this struct
no setterinherited
width int
Width of the image in pixels.
getter/setter pair

Methods

clone() → X
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
inherited
copy() → X
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setD(X o) → X
Copies the fields of o into this instance and returns this.
inherited
signature() String
Returns a human-readable representation of this struct.
override
structUpdateFrameCount(int frameCount) → void
Updates frameCount and resynchronizes frame-dependent memory state.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

BASE_bytesPerPixel(PixelFormat format) int
Returns the number of bytes per pixel for the given format.
BASE_dataLength(int frameSize, int frameCount) int
Returns the total byte length of all image data across all frames.
BASE_frameSize(int width, int height, PixelFormat format) int
Returns the byte size of a single frame.