DarkBASIC Professional Help File

DX11 GET IMAGE PIXEL BUFFER WIDTH

Returns the width (in pixels) of the locked part of the specified image.
This includes any padding that the GPU may apply for smaller images. Because of this you should use this width instead of that returned by DX11 GET IMAGE WIDTH when
skipping rows in the pixel data. It should of course also be multiplied by the size of the image's format (DX11 GET IMAGE FORMAT).
Take note that the specified image must be locked for this function to succeed..

Syntax

    Return Dword = DX11 GET IMAGE PIXEL BUFFER WIDTH(img)

Parameters

    img

> Dword
> The image to retrieve the width of. The image in question must be locked.

Returns

The actual width of the locked area of the specified image in pixels, including any padding, or zero if the specified image isn't locked.

See also

IMAGE Functions Menu
DX11 Function Categories