BlitImagePixels

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

Samples an immutable image independently at every output pixel in a logical destination rectangle.

Unlike logical-pixel image drawing, increasing the backend output scale preserves source detail within one logical pixel. Nearest sampling uses output pixel centers against the original unclipped destination; active clips remain logical rectangles. Source-over blending applies independently to every output pixel, including pixels later covered by ordinary logical commands. This detached command is safe to retain or read on any thread and owns no native handle or rendering callback.

Throws

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

Constructors

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

Properties

Link copied to clipboard

nonempty half-open destination in accumulated logical tree coordinates.

Link copied to clipboard

immutable source pixels retained without copying.

Link copied to clipboard

nonempty contained source rectangle in image pixel coordinates.