PDF .NET Library Documentation - PDF Technologies, Inc.
Assembly: PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)
Add a rectangle with rounded corners to path.
Namespace:
PDFTechAssembly: PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)
Syntax
C# |
---|
public void DrawRoundRect( PDFBrush brush, PDFPen pen, double X1, double Y1, double X2, double Y2, double X3, double Y3 ) |
Visual Basic (Declaration) |
---|
Public Sub DrawRoundRect ( _ brush As PDFBrush, _ pen As PDFPen, _ X1 As Double, _ Y1 As Double, _ X2 As Double, _ Y2 As Double, _ X3 As Double, _ Y3 As Double _ ) |
Visual C++ |
---|
public: void DrawRoundRect( PDFBrush^ brush, PDFPen^ pen, double X1, double Y1, double X2, double Y2, double X3, double Y3 ) |
Parameters
- brush
- Type: PDFTech..::.PDFBrush
Brush that determines the characteristics of the fill.
- pen
- Type: PDFTech..::.PDFPen
Pen that determines the color and width of the rectangle.
- X1
- Type: System..::.Double
First point x value
- Y1
- Type: System..::.Double
First point y value
- X2
- Type: System..::.Double
Second point x value
- Y2
- Type: System..::.Double
Second point y value
- X3
- Type: System..::.Double
Thirdth point x value
- Y3
- Type: System..::.Double
Thirdth point y value
Remarks
The rectangle will have edges defined by the points (X1,Y1), (X2,Y1), (X2,Y2), (X1,Y2),
but the corners will be shaved to create a rounded appearance. The curve of the rounded
corners matches the curvature of an ellipse with width X3 and height Y3