DarkBASIC Professional Help File

DX11 PRINT TO PIXELMAP

Prints the given text to a pixel map using the specified font.
You will own the pixel map created by this function and as such are responsible for deleting it
when you see fit. (Note that all resources are kept track of internally and will be released when your program
terminates, so there is no need to worry about memory leaks or anything of the kind).

Syntax

    Return Dword pixelmap  = DX11 PRINT TO PIXELMAP(font, text)

Parameters

    font

> Dword
> The font with which to print the text.

    text

> String
> The text to write using the font.

Returns

A pixel map containing the printed text with a tight fit.

See also

FONT Functions Menu
DX11 Function Categories