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 | |
CPattern (std::shared_ptr< CBitmap > aBitmap, int32_t aXOffset, int32_t aYOffset) | |
TColor | Color (int32_t aX, int32_t aY) override |
std::shared_ptr< CBitmap > | Texture () override |
std::shared_ptr< CPaintServer > | Blended (TColor) override |
Public Member Functions inherited from CartoType::CPaintServer | |
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 |
Additional Inherited Members | |
Public Attributes inherited from CartoType::CPaintServer | |
CString | iName |
A paint server that draws a bitmap as a repeating pattern of rectangular tiles. Successive rows or columns can optionally be offset to give a less square appearance.
|
inline |
Creates a pattern referring to a certain bitmap. Does not take ownership of the bitmap.
|
inlineoverridevirtual |
Creates a new paint server with colors converted to night mode or other color effect by blending with the specified color.
Implements CartoType::CPaintServer.
|
overridevirtual |
Supplies a color for the pixel at (aX,aY) in premultiplied RGBA format.
Implements CartoType::CPaintServer.
|
overridevirtual |
Returns the texture: a bitmap which is the smallest possible repeating element. Returns null if that is not possible.
Implements CartoType::CPaintServer.