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(double x1,
double y1,
double x2,
double y2,
double startAng,
double extent,
com.itextpdf.kernel.pdf.canvas.PdfCanvas cv,
com.itextpdf.kernel.geom.AffineTransform transform)
Draw an arc on the passed canvas with provided transform,
enclosed by the rectangle for which two opposite corners are specified.
|
static void |
doStrokeOrFillForClosedFigure(String fillRuleRawValue,
com.itextpdf.kernel.pdf.canvas.PdfCanvas currentCanvas,
boolean doStroke)
Perform stroke or fill operation for closed figure (e.g.
|
public 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 onpublic static void arc(double x1,
double y1,
double x2,
double y2,
double startAng,
double extent,
com.itextpdf.kernel.pdf.canvas.PdfCanvas cv,
com.itextpdf.kernel.geom.AffineTransform transform)
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 ontransform - AffineTransform to apply before drawing,
or null in case transform shouldn't be appliedpublic static void doStrokeOrFillForClosedFigure(String fillRuleRawValue, com.itextpdf.kernel.pdf.canvas.PdfCanvas currentCanvas, boolean doStroke)
fillRuleRawValue - fill rule (e.g. evenodd, nonzero)currentCanvas - canvas to draw ondoStroke - if true, stroke operation will be performed, fill otherwiseCopyright © 1998–2025 Apryse Group NV. All rights reserved.