5#include "utilities-def.h"
10#define MAX_ALPHABUF 1<<16
12typedef struct tagALPHAINFO
20 rc.left=rc.top=rc.right=rc.bottom=0;
22} ALPHAINFO,* LPALPHAINFO;
24class UTILITIES_API CGdiAlpha
27 static BYTE s_byAlphaBack[MAX_ALPHABUF];
29 static LPBYTE ALPHABACKUP(BITMAP *pBitmap,
int x,
int y,
int cx,
int cy);
31 static void ALPHARESTORE(BITMAP *pBitmap,
int x,
int y,
int cx,
int cy,LPBYTE lpAlpha);
34 static BOOL AlphaBackup(HDC hdc,LPCRECT pRect,ALPHAINFO &alphaInfo);
36 static void AlphaRestore(ALPHAINFO &alphaInfo);