|
CartoType API
|
#include <cartotype_graphics.h>
Public Member Functions | |
| virtual TColor | Color (int32 aX, int32 aY)=0 |
| virtual const TColor * | Ramp () const |
A paint server supplies a color for any given pixel. Paint servers are used to provide the correct color when filling shapes using gradients or patterns.
| virtual TColor CartoType::MPaintServer::Color | ( | int32 | aX, |
| int32 | aY | ||
| ) | [pure virtual] |
Supply a color for the pixel at (aX,aY) in premultiplied RGBA format.
Implemented in CartoType::CPattern, CartoType::CRampGradient, CartoType::CRadialGradient, CartoType::CLinearGradient, CartoType::CDiffuseLighting, and CartoType::CHachure.
| virtual const TColor* CartoType::MPaintServer::Ramp | ( | ) | const [inline, virtual] |
Return a pointer to a 256-element color ramp if there is one.
Reimplemented in CartoType::CLinearOrRadialGradient.
1.7.5.1