DarkBASIC Professional Help File

DX11 GET PIXELMAP PIXEL

Retrieves the colour of an individual pixel of a PixelMap.
Any pixel coordinates outside of the PixelMap's valid range will result in a return value of 0.

Syntax

    Return Dword = DX11 GET PIXELMAP PIXEL(pixelMap, x, y)

Parameters

    pixelMap

> Dword
> The pixelmap to get the pixel of.

    x

> Dword
> The X coordinate of the pixel to get.

    y

> Dword
> The Y coordinate of the pixel to get.

Returns

The colour of the pixel.

See also

PIXELMAP Functions Menu
DX11 Function Categories