PoDoFo::PdfTilingPattern Class Reference

#include <PdfTilingPattern.h>

Inheritance diagram for PoDoFo::PdfTilingPattern:

PoDoFo::PdfElement

List of all members.

Public Member Functions

const PdfNameGetIdentifier () const
 PdfTilingPattern (EPdfTilingPatternType eTilingType, double strokeR, double strokeG, double strokeB, bool doFill, double fillR, double fillG, double fillB, double offsetX, double offsetY, PdfImage *pImage, PdfVecObjects *pParent)
 PdfTilingPattern (EPdfTilingPatternType eTilingType, double strokeR, double strokeG, double strokeB, bool doFill, double fillR, double fillG, double fillB, double offsetX, double offsetY, PdfImage *pImage, PdfDocument *pParent)


Detailed Description

This class defined a tiling pattern which can be used to fill abitrary shapes with a pattern using PdfPainter.

Constructor & Destructor Documentation

PoDoFo::PdfTilingPattern::PdfTilingPattern ( EPdfTilingPatternType  eTilingType,
double  strokeR,
double  strokeG,
double  strokeB,
bool  doFill,
double  fillR,
double  fillG,
double  fillB,
double  offsetX,
double  offsetY,
PdfImage pImage,
PdfVecObjects pParent 
)

Create a new PdfTilingPattern object, which will introduce itself automatically to every page object it is used on.

Parameters:
eTilingType 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
pImage image to use - can be set only if eTilingType is ePdfTilingPatternType_Image
pParent parent vector of objects
Note:
stroke and fill colors are ignored if eTilingType is ePdfTilingPatternType_Image

fill color is ignored if doFill is false

pImage is ignored for all but ePdfTilingPatternType_Image eTilingType types, where it cannot be NULL

PoDoFo::PdfTilingPattern::PdfTilingPattern ( EPdfTilingPatternType  eTilingType,
double  strokeR,
double  strokeG,
double  strokeB,
bool  doFill,
double  fillR,
double  fillG,
double  fillB,
double  offsetX,
double  offsetY,
PdfImage pImage,
PdfDocument pParent 
)

Create a new PdfTilingPattern object, which will introduce itself automatically to every page object it is used on.

Parameters:
eTilingType 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
pImage image to use - can be set only if eTilingType is ePdfTilingPatternType_Image
pParent parent document
Note:
stroke and fill colors are ignored if eTilingType is ePdfTilingPatternType_Image

fill color is ignored if doFill is false

pImage is ignored for all but ePdfTilingPatternType_Image eTilingType types, where it cannot be NULL


Member Function Documentation

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)


Generated on Tue Nov 29 09:28:35 2016 for PoDoFo by  doxygen 1.5.6