pxtransp.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:1k
源码类别:

Symbian

开发平台:

Visual C++

  1. #ifndef PXTRANSP_H
  2. #define PXTRANSP_H
  3. // Forward declarations
  4. typedef _INTERFACE IHXValues IHXValues;
  5. HX_RESULT ParseTransparencyParameters(IHXValues* pValues,
  6.                                       REF(UINT32) rulBgOpacity,
  7.                                       REF(BOOL)   rbBgOpacitySpecified,
  8.                                       REF(UINT32) rulMediaOpacity,
  9.                                       REF(BOOL)   rbMediaOpacitySpecified,
  10.                                       REF(UINT32) rulChromaKey,
  11.                                       REF(BOOL)   rbChromaKeySpecified,
  12.                                       REF(UINT32) rulChromaKeyTolerance,
  13.                                       REF(UINT32) rulChromaKeyOpacity,
  14.                                       REF(BOOL)   rbAlphaChannelNeeded);
  15. BOOL DoesChromaKeyChannelMatch(UINT32 ulColor, UINT32 ulChromaKey, UINT32 ulChromaKeyTol);
  16. BOOL DoesChromaKeyMatch(UINT32 ulColor, UINT32 ulChromaKey, UINT32 ulChromaKeyTol);
  17. #define ARGB32_ALPHA(a) (((a) & 0xFF000000) >> 24)
  18. #define ARGB32_RED(a)   (((a) & 0x00FF0000) >> 16)
  19. #define ARGB32_GREEN(a) (((a) & 0x0000FF00) >>  8)
  20. #define ARGB32_BLUE(a)   ((a) & 0x000000FF)
  21. #endif