|
CartoType API
|
#include <cartotype_gradient.h>
Public Member Functions | |
| CT_IMPORT | CLinearGradient (const TPoint &aStart, const TPoint &aEnd) |
| CT_IMPORT | CLinearGradient (const TPoint &aStart, const TPoint &aEnd, TColor aStartColor, TColor aEndColor) |
| CT_IMPORT void | SetRange (const TPoint &aStart, const TPoint &aEnd) |
| CT_IMPORT TColor | Color (int32 aX, int32 aY) |
A linear gradient.
Create a linear gradient with no stops. (Use SetStops to set the stops.)
| CT_EXPORT CLinearGradient::CLinearGradient | ( | const TPoint & | aStart, |
| const TPoint & | aEnd, | ||
| TColor | aStartColor, | ||
| TColor | aEndColor | ||
| ) |
Create a linear gradient from aStartColor at 0% to aEndColor at 100%.
| CT_EXPORT TColor CLinearGradient::Color | ( | int32 | aX, |
| int32 | aY | ||
| ) | [virtual] |
Supply a color for the pixel at (aX,aY) in premultiplied RGBA format.
Implements CartoType::MPaintServer.
Set the line segment defining the range of a linear gradient.
1.7.5.1