Share via


DIBSIZE

 
Microsoft DirectShow 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.

Requirements

**  Header:** Declared in Amvideo.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also