DrawImage()

Syntax

DrawImage(ImageID, x, y [, Width, Height])
Description
Draws an image to the current drawing output. The filling mode is determined by DrawingMode(). The current output is set with StartDrawing().

Parameters

ImageID The ID of the image to draw. This value can be obtained using the ImageID() function from the image library.
x, y The position of the top/left corner of the image in the drawing output.
Width, Height (optional) The size with which the image will be drawn. If these parameters are not specified then the image will be drawn in its original size.

Return value

None.

Remarks

The image will be alpha-blended if the current DrawingMode() specifies one of the alpha-blending flags, otherwise the image is just copied to the output. To draw an image using alpha-blending in any case, use the DrawAlphaImage() command.

See Also

DrawAlphaImage(), ImageID()

Supported OS

All

<- DrawAlphaImage() - 2DDrawing Index - DrawRotatedText() ->