DarkBASIC Professional Help File

DX11 SET PIXELMAP RECT

Pastes the contents of one PixelMap onto another.
Settings for blending the copied pixels with a certain colour can be made - this is how Labels are created from Fonts with varying colour internally.

Syntax

    DX11 SET PIXELMAP RECT targetMap, sourceMap, x, y, [blendColour], [blendOnlyWhite], [epsilon]

Parameters

    targetMap

> Dword
> The pixel map to which the pixels will be copied.

    sourceMap

> Dword
> The pixel map from which the pixels will be copied.

    x

> Dword
> The X coordinate of the target map to begin the pasting at.

    y

> Dword
> The Y coordinate of the target map to begin the pasting at.

    [Optional] blendColour

> Dword
> The copied pixels can have their colour changed by bitwise AND:ing them with this colour. This assumes the target pixels are in a grayscale for the best effect.

    [Optional] blendOnlyWhite

> Boolean
> If set to true, only grayscale pixels will be subjected to blending with the above colour. Defaults to false.

    [Optional] epsilon

> Byte
> If blendOnlyWhite is set, pixels that have a greater difference than this between their red/green/blue components won't be blended. Defaults to 8.

Returns

This function does not return a value.

See also

PIXELMAP Functions Menu
DX11 Function Categories