CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_graphics_context.h>
Public Member Functions | |
virtual CartoTypeCore::Color | Color (int32_t aX, int32_t aY)=0 |
virtual const Bitmap * | Texture ()=0 |
virtual std::shared_ptr< PaintServer > | Blended (CartoTypeCore::Color aBlendColor)=0 |
virtual const CartoTypeCore::Color * | Ramp () const |
virtual const CartoTypeCore::HachureParam * | HachureParam () const |
Public Attributes | |
String | Name |
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.
|
pure virtual |
Creates a new paint server with colors converted to night mode or other color effect by blending with the specified color.
Implemented in CartoTypeCore::Pattern.
|
pure virtual |
Supplies a color for the pixel at (aX,aY) in premultiplied RGBA format.
Implemented in CartoTypeCore::Pattern.
|
inlinevirtual |
Returns a pointer to the hachure parameters if this is a hachure.
|
inlinevirtual |
Returns a pointer to a 256-element color ramp if there is one.
|
pure virtual |
Returns the texture: a bitmap which is the smallest possible repeating element. Returns null if that is not possible.
Implemented in CartoTypeCore::Pattern.
String CartoTypeCore::PaintServer::Name |
The name used in a defs section in a style sheet to refer to the paint server.