pxtransp.h
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:1k
- #ifndef PXTRANSP_H
- #define PXTRANSP_H
- // Forward declarations
- typedef _INTERFACE IHXValues IHXValues;
- HX_RESULT ParseTransparencyParameters(IHXValues* pValues,
- REF(UINT32) rulBgOpacity,
- REF(BOOL) rbBgOpacitySpecified,
- REF(UINT32) rulMediaOpacity,
- REF(BOOL) rbMediaOpacitySpecified,
- REF(UINT32) rulChromaKey,
- REF(BOOL) rbChromaKeySpecified,
- REF(UINT32) rulChromaKeyTolerance,
- REF(UINT32) rulChromaKeyOpacity,
- REF(BOOL) rbAlphaChannelNeeded);
- BOOL DoesChromaKeyChannelMatch(UINT32 ulColor, UINT32 ulChromaKey, UINT32 ulChromaKeyTol);
- BOOL DoesChromaKeyMatch(UINT32 ulColor, UINT32 ulChromaKey, UINT32 ulChromaKeyTol);
- #define ARGB32_ALPHA(a) (((a) & 0xFF000000) >> 24)
- #define ARGB32_RED(a) (((a) & 0x00FF0000) >> 16)
- #define ARGB32_GREEN(a) (((a) & 0x0000FF00) >> 8)
- #define ARGB32_BLUE(a) ((a) & 0x000000FF)
- #endif