|
CartoType API
|
#include <cartotype_gradient.h>
Public Member Functions | |
| CT_IMPORT void | SetStops (const TGradientStop *aStop, int32 aStops) |
| CT_IMPORT void | SetRanges (const TGradientRange *aRange, int32 aRanges) |
| void | SetSpreadMethod (TGradientSpreadMethod aSpreadMethod) |
| virtual const TColor * | Ramp () const |
Protected Member Functions | |
| int | Snap (int aOffset) |
Protected Attributes | |
| TColor | iColor [256] |
| TGradientSpreadMethod | iSpreadMethod |
The base class for linear and radial gradients.
| virtual const TColor* CartoType::CLinearOrRadialGradient::Ramp | ( | ) | const [inline, virtual] |
Return a pointer to a 256-element color ramp if there is one.
Reimplemented from CartoType::MPaintServer.
| int CLinearOrRadialGradient::Snap | ( | int | aOffset | ) | [protected] |
Snap a gradient offset position to the range 0...1 according to the spread method.
1.7.5.1