PoDoFo  0.9.4
Public Member Functions | List of all members
PoDoFo::PdfTriangleShadingPattern Class Reference

#include <PdfShadingPattern.h>

Inheritance diagram for PoDoFo::PdfTriangleShadingPattern:
PoDoFo::PdfShadingPattern PoDoFo::PdfElement

Public Member Functions

 PdfTriangleShadingPattern (double dX0, double dY0, const PdfColor &color0, double dX1, double dY1, const PdfColor &color1, double dX2, double dY2, const PdfColor &color2, PdfVecObjects *pParent)
 
 PdfTriangleShadingPattern (double dX0, double dY0, const PdfColor &color0, double dX1, double dY1, const PdfColor &color1, double dX2, double dY2, const PdfColor &color2, PdfDocument *pParent)
 
- Public Member Functions inherited from PoDoFo::PdfShadingPattern
const PdfNameGetIdentifier () const
 
- Public Member Functions inherited from PoDoFo::PdfElement
PdfObjectGetObject ()
 
const PdfObjectGetObject () const
 

Additional Inherited Members

- Protected Member Functions inherited from PoDoFo::PdfShadingPattern
 PdfShadingPattern (EPdfShadingPatternType eShadingType, PdfVecObjects *pParent)
 
 PdfShadingPattern (EPdfShadingPatternType eShadingType, PdfDocument *pParent)
 
- Protected Member Functions inherited from PoDoFo::PdfElement
 PdfElement (const char *pszType, PdfVecObjects *pParent)
 
 PdfElement (const char *pszType, PdfDocument *pParent)
 
 PdfElement (const char *pszType, PdfObject *pObject)
 
 PdfElement (EPdfDataType eExpectedDataType, PdfObject *pObject)
 
const char * TypeNameForIndex (int i, const char **ppTypes, long lLen) const
 
int TypeNameToIndex (const char *pszType, const char **ppTypes, long lLen, int nUnknownValue) const
 
PdfObjectCreateObject (const char *pszType=NULL)
 
PdfObjectGetNonConstObject () const
 

Detailed Description

A shading pattern that is a simple triangle shading between three colors. It's a single-triangle simplified variation of a FreeForm shadding pattern.

Constructor & Destructor Documentation

PoDoFo::PdfTriangleShadingPattern::PdfTriangleShadingPattern ( double  dX0,
double  dY0,
const PdfColor color0,
double  dX1,
double  dY1,
const PdfColor color1,
double  dX2,
double  dY2,
const PdfColor color2,
PdfVecObjects pParent 
)

Create a triangle shading pattern

Parameters
dX0triangle x coordinate of point 0
dY0triangle y coordinate of point 0
color0color of point 0
dX1triangle x coordinate of point 1
dY1triangle y coordinate of point 1
color1color of point 1
dX2triangle x coordinate of point 2
dY2triangle y coordinate of point 2
color2color of point 2
pParentthe parent
PoDoFo::PdfTriangleShadingPattern::PdfTriangleShadingPattern ( double  dX0,
double  dY0,
const PdfColor color0,
double  dX1,
double  dY1,
const PdfColor color1,
double  dX2,
double  dY2,
const PdfColor color2,
PdfDocument pParent 
)

Create a triangle shading pattern

Parameters
dX0triangle x coordinate of point 0
dY0triangle y coordinate of point 0
color0color of point 0
dX1triangle x coordinate of point 1
dY1triangle y coordinate of point 1
color1color of point 1
dX2triangle x coordinate of point 2
dY2triangle y coordinate of point 2
color2color of point 2
pParentthe parent