DarkBASIC Professional Help File

DX11 GET IMAGE WIDTH

Returns the width of the image.

Syntax

    Return Dword = DX11 GET IMAGE WIDTH(img, [mipLevel])

Parameters

    img

> Dword
> The image to get the width of.

    [Optional] mipLevel

> Dword
> If the image has multiple mip maps you can use this parameter to select which one you want to retrieve the width of. Use 0 for the topmost (full resolution) mip.

Returns

The width of the image in pixels.

See also

IMAGE Functions Menu
DX11 Function Categories