PoDoFo 0.9.20
Public Member Functions | List of all members
PoDoFo::PdfTriangleShadingPattern Class Referencefinal

#include <PdfShadingPattern.h>

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

Public Member Functions

 PdfTriangleShadingPattern (PdfDocument &doc, double x0, double y0, const PdfColor &color0, double x1, double y1, const PdfColor &color1, double x2, double y2, const PdfColor &color2)
 
- Public Member Functions inherited from PoDoFo::PdfShadingPattern
const PdfNameGetIdentifier () const
 

Additional Inherited Members

- Protected Member Functions inherited from PoDoFo::PdfShadingPattern
 PdfShadingPattern (PdfDocument &doc, PdfShadingPatternType shadingType)
 

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

◆ PdfTriangleShadingPattern()

PdfTriangleShadingPattern::PdfTriangleShadingPattern ( PdfDocument doc,
double  x0,
double  y0,
const PdfColor color0,
double  x1,
double  y1,
const PdfColor color1,
double  x2,
double  y2,
const PdfColor color2 
)

Create a triangle shading pattern

Parameters
x0triangle x coordinate of point 0
y0triangle y coordinate of point 0
color0color of point 0
x1triangle x coordinate of point 1
y1triangle y coordinate of point 1
color1color of point 1
x2triangle x coordinate of point 2
y2triangle y coordinate of point 2
color2color of point 2
parentthe parent