Sprite.drawAt

Draws the image on the specified painter at the specified point. The point is the upper-left point where the image will be drawn.

class Sprite
void
drawAt

Parameters

where Point

point on the window where the upper left corner of the image will be drawn

imageUpperLeft Point

point on the image to start the slice to draw

sliceSize Size

size of the slice of the image to draw on the window. If width or height is 0, it uses the entire width or height of the image.

Meta

History

The imageUpperLeft and sliceSize parameters were added on March 11, 2021 (dub v9.3.0)

Suggestion Box / Bug Report