DarkBASIC Professional Help File

DX11 CREATE PIXELMAP FROM MEMORY

Creates a new pixelmap of the specified dimensions that reads its initial contents from the provided pointer.
Since the pixelmap format corresponds to DBPro's internal image format, this can be the pointer to a memblock
created using the MAKE MEMBLOCK FROM IMAGE function.

Syntax

    Return Dword = DX11 CREATE PIXELMAP FROM MEMORY(width, height, ptrSource)

Parameters

    width

> Dword
> The width of the pixelmap in pixels. Note that the source memory must be at least this wide (it can be wider though)!

    height

> Dword
> The height of the pixelmap in pixels. Note that the source memory must be at least this high (it can be higher though)!

    ptrSource

> Dword
> A pointer to a block of memory that contains the initial pixel data that will be copied to the created pixelmap.

Returns

The created pixelmap.

See also

PIXELMAP Functions Menu
DX11 Function Categories