Windows Dev Center

CImageDisplay.CountPrefixBits method

The CountPrefixBits method calculates the number of zero bits at the start of a specified bit field.

Syntax


DWORD CountPrefixBits(
   const DWORD Field
);

Parameters

Field

Specifies a bit field as a DWORD value.

Return value

Returns the number of zero bits that occur before the first 1 bit, or 0x80000000 if all bits are zero.

Remarks

This method is useful for working with color masks in VIDEOINFO structures.

Requirements

Header

Winutil.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CImageDisplay Class

 

 

Community Additions

ADD
Show:
© 2015 Microsoft