|
ICDecompressGetPalette
The ICDecompressGetPalette macro requests that the video decompression driver supply the color table of
the output BITMAPINFOHEADER structure. You can use this macro or explicitly call the ICM_DECOMPRESS_GET_PALETTE message.
DWORD ICDecompressGetPalette(
hic,
|
| lpbiInput,
|
| lpbiOutput
|
| );
|
|
Parameters
hic
Handle of a decompressor.
lpbiInput
Address of a BITMAPINFOHEADER structure containing the input format.
lpbiOutput
Address of a BITMAPINFOHEADER structure to contain the color table. The space reserved for the color table
is always at least 256 colors. You can specify zero for this parameter to
return only the size of the color table.
Return Values
Returns ICERR_OK if successful or an error otherwise.
Remarks
If lpbiOutput is nonzero, the driver sets the biClrUsed member of BITMAPINFOHEADER to the number of colors in the color table. The driver fills the bmiColors members of BITMAPINFO with the actual colors.
The driver should support this message only if it uses a palette other than
the one specified in the input format.
See Also
BITMAPINFO, BITMAPINFOHEADER, ICM_DECOMPRESS_GET_PALETTE
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|