Table of Contents

Class DrawUtils

Namespace
iText.Svg.Utils
Assembly
itext.svg.dll

Utility class for drowing shapes on PdfCanvas

public class DrawUtils
Inheritance
DrawUtils
Inherited Members

Methods

Arc(double, double, double, double, double, double, PdfCanvas)

Draw an arc on the passed canvas, enclosed by the rectangle for which two opposite corners are specified.

public static void Arc(double x1, double y1, double x2, double y2, double startAng, double extent, PdfCanvas cv)

Parameters

x1 double

corner-coordinate of the enclosing rectangle, first corner

y1 double

corner-coordinate of the enclosing rectangle, first corner

x2 double

corner-coordinate of the enclosing rectangle, second corner

y2 double

corner-coordinate of the enclosing rectangle, second corner

startAng double

starting angle in degrees

extent double

extent of the arc

cv PdfCanvas

canvas to paint on

Remarks

Draw an arc on the passed canvas, enclosed by the rectangle for which two opposite corners are specified. The arc starts at the passed starting angle and extends to the starting angle + extent