The OpenD Programming Language

ScreenPainter.drawPixmap

Draws a pixmap (represented by the Sprite class) on the drawable.

struct ScreenPainter
void
drawPixmap

Parameters

upperLeft 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)