#include <PdfTilingPattern.h>
|
| const PdfName & | GetIdentifier () const |
| |
| | PdfTilingPattern (PdfDocument &doc, PdfTilingPatternType tilingType, double strokeR, double strokeG, double strokeB, bool doFill, double fillR, double fillG, double fillB, double offsetX, double offsetY, PdfImage *image) |
| |
This class defined a tiling pattern which can be used to fill abitrary shapes with a pattern using PdfPainter.
◆ PdfTilingPattern()
| PdfTilingPattern::PdfTilingPattern |
( |
PdfDocument & | doc, |
|
|
PdfTilingPatternType | tilingType, |
|
|
double | strokeR, |
|
|
double | strokeG, |
|
|
double | strokeB, |
|
|
bool | doFill, |
|
|
double | fillR, |
|
|
double | fillG, |
|
|
double | fillB, |
|
|
double | offsetX, |
|
|
double | offsetY, |
|
|
PdfImage * | image ) |
Create a new PdfTilingPattern object, which will introduce itself automatically to every page object it is used on.
- Parameters
-
| tilingType | the type of this tiling pattern |
| strokeR | strok color red component |
| strokeG | strok color green component |
| strokeB | strok color blue component |
| doFill | whether tile fills content first, with fill color |
| fillR | fill color red component |
| fillG | fill color green component |
| fillB | fill color blue component |
| offsetX | tile offset on X axis |
| offsetY | tile offset on Y axis |
| image | image to use - can be set only if tilingType is PdfTilingPatternType::Image |
| parent | parent document |
- Note
- stroke and fill colors are ignored if eTilingType is PdfTilingPatternType::Image
-
fill color is ignored if doFill is false
-
image is ignored for all but PdfTilingPatternType::Image tilingType types, where it cannot be nullptr
◆ GetIdentifier()
| const PdfName & PoDoFo::PdfTilingPattern::GetIdentifier |
( |
| ) |
const |
|
inline |
Returns the identifier of this TilingPattern how it is known in the pages resource dictionary.
- Returns
- PdfName containing the identifier (e.g. /PtrnXXXXX)
The documentation for this class was generated from the following files:
- PdfTilingPattern.h
- PdfTilingPattern.cpp