CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_graphics_context.h>
Public Member Functions | |
virtual TColor | Color (int32_t aX, int32_t aY)=0 |
virtual std::shared_ptr< CBitmap > | Texture ()=0 |
virtual std::shared_ptr< CPaintServer > | Blended (TColor aBlendColor)=0 |
virtual const TColor * | Ramp () const |
virtual const THachureParam * | HachureParam () const |
Public Attributes | |
CString | iName |
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 CartoType::CPattern.
|
pure virtual |
Supplies a color for the pixel at (aX,aY) in premultiplied RGBA format.
Implemented in CartoType::CPattern.
|
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 CartoType::CPattern.
CString CartoType::CPaintServer::iName |
The name used in a defs section in a style sheet to refer to the paint server.