PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawRoundRectangle Method / drawRoundRectangle(PDFPen,double,double,double,double,double,double,double) Method
that determines the color, width, and style of the rectangle.
The x-coordinate of the upper-left corner of the rectangle to draw.
The y-coordinate of the upper-left corner of the rectangle to draw.
Width of the rectangle to draw.
Height of the rectangle to draw.
Width of the ellipse that defines the rounded corners.
Height of the ellipse that defines the rounded corners.
Rotation of the rectangle around the upper-left corner.
Collapse All Expand All
In This Topic

drawRoundRectangle(PDFPen,double,double,double,double,double,double,double) Method
In This Topic
Draws a rounded rectangle specified by a coordinate pair, a width, and a height.
Syntax

    public void drawRoundRectangle(
       PDFPen pen,
       double x,
       double y,
       double width,
       double height,
       double ellipseWidth,
       double ellipseHeight,
       double rotation
    )

#### Parameters

pen
  that determines the color, width, and style of the rectangle.
x
  The x-coordinate of the upper-left corner of the rectangle to draw.
y
  The y-coordinate of the upper-left corner of the rectangle to draw.
width
  Width of the rectangle to draw.
height
  Height of the rectangle to draw.
ellipseWidth
  Width of the ellipse that defines the rounded corners.
ellipseHeight
  Height of the ellipse that defines the rounded corners.
rotation
  Rotation of the rectangle around the upper-left corner.

See Also

#### Reference

PDFCanvas Class
PDFCanvas Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.