123456789101112131415161718192021222324252627 |
- // Gradient.h: interface for the CGradient class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(GRADIENT_H)
- #define GRADIENT_H
- #define PI 3.1415926535897932384626433832795
- #define GAMMA 0.4 // 广义自动矩阵汇编方法?;
- class CGradient
- {
- public:
- // Public methods
- CGradient();
- virtual ~CGradient();
- // 水平梯度;
- void HorizontalGradient(CDC* pDC, LPRECT lpRect, COLORREF sColor, COLORREF eColor, BOOL bGamma=FALSE, double gamma=GAMMA);
- void HorizontalGradient(CDC* pDC, HRGN hRgn, COLORREF sColor, COLORREF eColor, BOOL bGamma=FALSE, double gamma=GAMMA);
- // 垂直梯度;
- void VerticalGradient(CDC* pDC, LPRECT lpRect, COLORREF sColor, COLORREF eColor, BOOL bGamma=FALSE, double gamma=GAMMA);
- void VerticalGradient(CDC* pDC, HRGN hRgn, COLORREF sColor, COLORREF eColor, BOOL bGamma=FALSE, double gamma=GAMMA);
- };
- #endif // !defined(GRADIENT_H)
|