Share via


CImageDisplay::CountSetBits

 
Microsoft DirectShow 9.0

CImageDisplay::CountSetBits

The CountSetBits method returns the number of bits set to 1 in a specified bit field.

Syntax

  DWORD CountSetBits(
    const DWORD Field
);

Parameters

Field

Specifies a bit field as a DWORD value.

Return Value

Returns the number of bits that are set to 1.

Requirements

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

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

See Also