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

#include <PdfPainterExtensions.h>

Public Member Functions

void AddHorizontalLine (double x)
 
void AddVerticalLine (double y)
 
void AddSmoothCurve (double x2, double y2, double x3, double y3)
 
void AddQuadCurve (double x1, double y1, double x3, double y3)
 
void AddSmoothQuadCurve (double x3, double y3)
 
void AddArcTo (double x, double y, double radiusX, double radiusY, double rotation, bool large, bool sweep)
 

Detailed Description

This class cointains some extensions methods to PdfPainterPath The class mostly implements some SVG commands by using regular PDF operators by maintaining an internal state

Remarks
This class is not maintained and its use is not recommended until problems found are solved https://www.mail-archive.com/podofo-users@lists.sourceforge.net/msg04879.html

Member Function Documentation

◆ AddArcTo()

void PoDoFo::PdfPainterPathExtensions::AddArcTo ( double  x,
double  y,
double  radiusX,
double  radiusY,
double  rotation,
bool  large,
bool  sweep 
)

Append a Arc to the current path Matches the SVG 'A' operator.

Parameters
xx coordinate of the start point
yy coordinate of the start point
radiusXx coordinate of the end point, which is the new current point
radiusYy coordinate of the end point, which is the new current point
rotationdegree of rotation in radians
largelarge or small portion of the arc
sweepsweep?

◆ AddHorizontalLine()

void PoDoFo::PdfPainterPathExtensions::AddHorizontalLine ( double  x)

Append a horizontal line to the current path Matches the SVG 'H' operator

Parameters
xx coordinate to draw the line to

◆ AddQuadCurve()

void PoDoFo::PdfPainterPathExtensions::AddQuadCurve ( double  x1,
double  y1,
double  x3,
double  y3 
)

Append a quadratic bezier curve to the current path Matches the SVG 'Q' operator.

Parameters
x1x coordinate of the first control point
y1y coordinate of the first control point
x3x coordinate of the end point, which is the new current point
y3y coordinate of the end point, which is the new current point

◆ AddSmoothCurve()

void PoDoFo::PdfPainterPathExtensions::AddSmoothCurve ( double  x2,
double  y2,
double  x3,
double  y3 
)

Append a smooth bezier curve to the current path Matches the SVG 'S' operator.

Parameters
x2x coordinate of the second control point
y2y coordinate of the second control point
x3x coordinate of the end point, which is the new current point
y3y coordinate of the end point, which is the new current point

◆ AddSmoothQuadCurve()

void PoDoFo::PdfPainterPathExtensions::AddSmoothQuadCurve ( double  x3,
double  y3 
)

Append a smooth quadratic bezier curve to the current path Matches the SVG 'T' operator.

Parameters
x3x coordinate of the end point, which is the new current point
y3y coordinate of the end point, which is the new current point

◆ AddVerticalLine()

void PoDoFo::PdfPainterPathExtensions::AddVerticalLine ( double  y)

Append a vertical line to the current path Matches the SVG 'V' operator

Parameters
yy coordinate to draw the line to