BlitImage

data class BlitImage(val image: DrawImage, val source: IntRect, val destination: IntRect) : DrawCommand(source)

Copies an image source rectangle into a tree-coordinate destination rectangle.

The source is nonempty and contained in DrawCommand.BlitImage.image. The destination is nonempty and uses half-open tree coordinates. Backends execute this command in the supplied command order; core does not clip or sample it.

Throws

when the source is empty, outside DrawCommand.BlitImage.image, or the destination is empty.

Constructors

Link copied to clipboard
constructor(image: DrawImage, source: IntRect, destination: IntRect)

Properties

Link copied to clipboard

the destination rectangle in accumulated tree coordinates.

Link copied to clipboard

the immutable source image retained by reference without copying pixels.

Link copied to clipboard

the source rectangle in image pixel coordinates.