Image class

Image, pixel data stored in CPU memory (RAM).

Constructors

Image({required int width, required int height, int mipmaps = 1, PixelFormat format = PixelFormat.uncompressedR8G8B8A8})
Image, pixel data stored in CPU memory (RAM).
Image.fromRef(Image ref)
Image, pixel data stored in CPU memory (RAM).

Properties

format PixelFormat
Data format (PixelFormat type).
no setter
hashCode int
The hash code for this object.
no setterinherited
height int
Image base height.
no setter
mipmaps int
Mipmap levels, 1 by default.
no setter
pointer Pointer<Image>
Native pointer, used internally.
final
ref ↔ Image
Native reference.
latefinalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Image raw data Image base width.
no setter

Methods

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