#include <PdfPainterExtensions.h>
|
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) |
|
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
◆ 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
-
x | x coordinate of the start point |
y | y coordinate of the start point |
radiusX | x coordinate of the end point, which is the new current point |
radiusY | y coordinate of the end point, which is the new current point |
rotation | degree of rotation in radians |
large | large or small portion of the arc |
sweep | sweep? |
◆ AddHorizontalLine()
void PoDoFo::PdfPainterPathExtensions::AddHorizontalLine |
( |
double |
x | ) |
|
Append a horizontal line to the current path Matches the SVG 'H' operator
- Parameters
-
x | x 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
-
x1 | x coordinate of the first control point |
y1 | y coordinate of the first control point |
x3 | x coordinate of the end point, which is the new current point |
y3 | y 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
-
x2 | x coordinate of the second control point |
y2 | y coordinate of the second control point |
x3 | x coordinate of the end point, which is the new current point |
y3 | y 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
-
x3 | x coordinate of the end point, which is the new current point |
y3 | y 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
-
y | y coordinate to draw the line to |