DarkBASIC Professional Help File

DX11 GET IMAGE PIXEL BUFFER HEIGHT

Returns the height (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 height instead of that returned by DX11 GET IMAGE HEIGHT if you
need to know the actual height of the pixel data. Pixels outside the image's displayed width / height (in other words the padding) can be set to whatever; they will not
influence the displayed image.
Take note that the specified image must be locked for this function to succeed..

Syntax

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

Parameters

    img

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

Returns

The actual height 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