Image class

Image data used to create a texture.

Inheritance
Mixed-in types

Constructors

Image.new({required GltfRoot root, required String? uri, required MimeType? mimeType, required GltfRef<BufferView>? bufferView})
Image.parse(GltfRoot root, Map<String, Object?> map)

Properties

bufferView GltfRef<BufferView>?
The reference to the bufferView that contains the image. This field MUST NOT be defined when uri is defined.
final
hashCode int
The hash code for this object.
no setterinherited
mimeType MimeType?
The image's media type.
final
root GltfRoot
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri String?
The URI (or IRI) of the image.
final

Methods

data() Future<Uint8List>
getData() → ImageTexture
inherited
init() Future<void>
inherited
loadData() Future<ImageTexture>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseDartImage() Future<Image>
toFlameTexture() → ImageTexture
toString() String
A string representation of this object.
inherited

Operators

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