blitImage

abstract fun blitImage(image: DrawImage, source: IntRect, localDestination: IntRect)(source)

Adds a local image blit command.

The immutable image reference is retained without copying its pixels. The source is expressed in image pixel coordinates and must be nonempty and contained in image. The destination is a nonempty local half-open rectangle; core translates it to tree coordinates with checked arithmetic.

Parameters

image

the immutable source image.

source

the nonempty source rectangle in image coordinates.

localDestination

the nonempty destination rectangle in this node's local coordinates.

Throws

when either rectangle is empty or the source is outside image.

when the scope is no longer valid.