DarkBASIC Professional Help File

DX11 DRAW IMAGE

Draws the specified image with its top-left corner at the given coordinates.
An opacity value as well as custom width and height settings can optionally be provided.

Syntax

    DX11 DRAW IMAGE x, y, image, [opacity], [width], [height]

Parameters

    x

> Integer
> The X coordinate of the top-left corner to draw the image at.

    y

> Integer
> The Y coordinate of the top-left corner to draw the image at.

    image

> Dword
> The image to draw.

    [Optional] opacity

> Float
> An opacity value in the range [0..1] where 0 means completely transparent and 1 completely opaque. Will be multiplied with the alpha channel of the image if one exists. Defaults to 1.

    [Optional] width

> Dword
> The width to draw the image to.

    [Optional] height

> Dword
> The height to draw the image to.

Returns

This function does not return a value.

See also

DIRECTDRAWING Functions Menu
DX11 Function Categories