CImageDisplay.GetBitMasks method
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetBitMasks
method retrieves the color masks for a specified VIDEOINFO format.
Syntax
const DWORD* GetBitMasks(
const VIDEOINFO *pVideoInfo
);
Parameters
-
pVideoInfo
-
Pointer to the VIDEOINFO structure.
Return value
Returns an array of three DWORD values.
Remarks
If the biCompression member is BI_BITFIELDS, the method returns a pointer to the color masks that are supplied in the dwBitMasks member. If the biCompression member is BI_RGB, the method returns the color masks that correspond to the bit depth. If the method fails (for example, the bit depth is less than 16), the method returns the array {0,0,0}.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|