ImageTexture class

A texture that holds an image as it's render-able texture.

Inheritance

Constructors

ImageTexture.new(ByteData source, {required int width, required int height})
A texture that holds an image as it's render-able texture.

Properties

format PixelFormat
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height int
finalinherited
recreateResource bool
getter/setter pairinherited
resource Texture
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceData ByteData
finalinherited
width int
finalinherited

Methods

createResource() Texture
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toImage() Image
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(Image image) Future<ImageTexture>
Create a ImageTexture from the given image.