ImageComposition class

The ImageComposition allows for composing multiple images onto a single image.

Note: Composing images is a heavy async operation and should not be called inside the game loop.

Constructors

ImageComposition({BlendMode defaultBlendMode = BlendMode.srcOver, bool defaultAntiAlias = false})

Properties

defaultAntiAlias → bool
The defaultAntiAlias can be used to if each image will be anti aliased.
final
defaultBlendMode → BlendMode
The defaultBlendMode can be used to change how each image will be blended onto the composition. Defaults to BlendMode.srcOver.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Image image, Vector2 position, {Rect? source, double angle = 0, Vector2? anchor, bool? isAntiAlias, BlendMode? blendMode}) → void
Add an image to the ImageComposition.
clear() → void
compose() → Future<Image>
Compose all the images into a single composition.
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