public class DrawUtils extends Object
PdfCanvas| Modifier and Type | Method and Description |
|---|---|
static void |
arc(double x1,
double y1,
double x2,
double y2,
double startAng,
double extent,
com.itextpdf.kernel.pdf.canvas.PdfCanvas cv)
Draw an arc on the passed canvas,
enclosed by the rectangle for which two opposite corners are specified.
|
static void |
arc(float x1,
float y1,
float x2,
float y2,
float startAng,
float extent,
com.itextpdf.kernel.pdf.canvas.PdfCanvas cv)
Deprecated.
In
PdfCanvas most of the path drawing methods accept double.
So it is preferable to use arc(double, double, double, double, double, double, PdfCanvas).
This method will be removed in iText 7.2 |
@Deprecated public static void arc(float x1, float y1, float x2, float y2, float startAng, float extent, com.itextpdf.kernel.pdf.canvas.PdfCanvas cv)
PdfCanvas most of the path drawing methods accept double.
So it is preferable to use arc(double, double, double, double, double, double, PdfCanvas).
This method will be removed in iText 7.2x1 - corner-coordinate of the enclosing rectangle, first cornery1 - corner-coordinate of the enclosing rectangle, first cornerx2 - corner-coordinate of the enclosing rectangle, second cornery2 - corner-coordinate of the enclosing rectangle, second cornerstartAng - starting angle in degreesextent - extent of the arccv - canvas to paint onpublic static void arc(double x1,
double y1,
double x2,
double y2,
double startAng,
double extent,
com.itextpdf.kernel.pdf.canvas.PdfCanvas cv)
x1 - corner-coordinate of the enclosing rectangle, first cornery1 - corner-coordinate of the enclosing rectangle, first cornerx2 - corner-coordinate of the enclosing rectangle, second cornery2 - corner-coordinate of the enclosing rectangle, second cornerstartAng - starting angle in degreesextent - extent of the arccv - canvas to paint onCopyright © 1998–2020 iText Group NV. All rights reserved.