#include <ChartGradient.h>
Public Member Functions | |
CChartGradient () | |
Constructor. | |
~CChartGradient () | |
Destructor. | |
Static Public Member Functions | |
static void | DrawGradient (CDC *pDC, const CRect &GradientRect, COLORREF Color1, COLORREF Color2, EGradientType GradientType) |
Draws a gradient between two colors inside a rectangle. |
It only contains a static function to draw the gradient. This is mainly used internally.
void CChartGradient::DrawGradient | ( | CDC * | pDC, | |
const CRect & | GradientRect, | |||
COLORREF | Color1, | |||
COLORREF | Color2, | |||
EGradientType | GradientType | |||
) | [static] |
Draws a gradient between two colors inside a rectangle.
pDC | The device context with which to draw. | |
GradientRect | The rectangle in which to draw the gradient | |
Color1 | The first gradient color | |
Color2 | The second gradient color | |
GradientType | The type of gradient to use in the rectangle |