Microsoft DirectX 9.0

DIBSIZE

The DIBSIZE macro calculates the number of bytes required by a device-independent bitmap (DIB).

Syntax

DIBSIZE(bi)

Parameters

bi

Specifies a BITMAPINFOHEADER structure.

Return Value

Returns the size in bytes.

Remarks

The size of a DIB is calculated as stride * height, where stride is width * bits per pixel/8, rounded up to the nearest DWORD alignment; and height is the absolute value of biHeight.

See Also