home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 February / Chip_2004-02_cd1.bin / tema / stream / download / asfrec / source / wingui / msimg32.h < prev    next >
Text File  |  2000-06-14  |  2KB  |  79 lines

  1.  
  2. /* The Win32 headers for GCC currently do not know about the functions */
  3. /* of msimg32.dll - so let's define them here */
  4.  
  5. //
  6. // image blt
  7. //
  8.  
  9. typedef USHORT COLOR16;
  10.  
  11. typedef struct _TRIVERTEX
  12. {
  13.     LONG    x;
  14.     LONG    y;
  15.     COLOR16 Red;
  16.     COLOR16 Green;
  17.     COLOR16 Blue;
  18.     COLOR16 Alpha;
  19. }TRIVERTEX,*PTRIVERTEX,*LPTRIVERTEX;
  20.  
  21. typedef struct _GRADIENT_TRIANGLE
  22. {
  23.     ULONG Vertex1;
  24.     ULONG Vertex2;
  25.     ULONG Vertex3;
  26. } GRADIENT_TRIANGLE,*PGRADIENT_TRIANGLE,*LPGRADIENT_TRIANGLE;
  27.  
  28. typedef struct _GRADIENT_RECT
  29. {
  30.     ULONG UpperLeft;
  31.     ULONG LowerRight;
  32. }GRADIENT_RECT,*PGRADIENT_RECT,*LPGRADIENT_RECT;
  33.  
  34. typedef struct _BLENDFUNCTION
  35. {
  36.     BYTE   BlendOp;
  37.     BYTE   BlendFlags;
  38.     BYTE   SourceConstantAlpha;
  39.     BYTE   AlphaFormat;
  40. }BLENDFUNCTION,*PBLENDFUNCTION;
  41.  
  42.  
  43. //
  44. // currentlly defined blend function
  45. //
  46.  
  47. #define AC_SRC_OVER                 0x00
  48.  
  49. //
  50. // alpha format flags
  51. //
  52.  
  53. #define AC_SRC_NO_PREMULT_ALPHA     0x01
  54. #define AC_SRC_NO_ALPHA             0x02
  55. #define AC_DST_NO_PREMULT_ALPHA     0x10
  56. #define AC_DST_NO_ALPHA             0x20
  57.  
  58. WINGDIAPI BOOL  WINAPI AlphaBlend(HDC,int,int,int,int,HDC,int,int,int,int,BLENDFUNCTION);
  59.  
  60. WINGDIAPI BOOL  WINAPI AlphaDIBBlend(HDC,int,int,int,int,CONST VOID *,
  61.         CONST BITMAPINFO *,UINT,int,int,int,int,BLENDFUNCTION);
  62.  
  63. WINGDIAPI BOOL  WINAPI TransparentBlt(HDC,int,int,int,int,HDC,int,int,int,int,UINT);
  64.  
  65. WINGDIAPI BOOL  WINAPI TransparentDIBits(HDC,int,int,int,int,CONST VOID *,
  66.         CONST BITMAPINFO *,UINT,int,int,int,int,UINT);
  67.  
  68. //
  69. // gradient drawing modes
  70. //
  71.  
  72. #define GRADIENT_FILL_RECT_H    0x00000000
  73. #define GRADIENT_FILL_RECT_V    0x00000001
  74. #define GRADIENT_FILL_TRIANGLE  0x00000002
  75. #define GRADIENT_FILL_OP_FLAG   0x000000ff
  76.  
  77. WINGDIAPI BOOL  WINAPI GradientFill(HDC,PTRIVERTEX,ULONG,PVOID,ULONG,ULONG);
  78.  
  79.