THPDFPage.Chord Method
Draws a chord of an elliptical region — the area bounded by the elliptical arc and the straight line joining the arc's endpoints — and fills it with the current brush
Declaration
procedure Chord(X1, Y1, X2, Y2: Extended; BegAngle, EndAngle: Extended);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
X1 | Top-left X coordinate of the ellipse's bounding box, in user-space units |
Y1 | Top-left Y coordinate of the ellipse's bounding box, in user-space units |
X2 | Bottom-right X coordinate of the ellipse's bounding box, in user-space units |
Y2 | Bottom-right Y coordinate of the ellipse's bounding box, in user-space units |
BegAngle | Starting angle of the arc, in degrees (0 = right, anticlockwise) |
EndAngle | Ending angle of the arc, in degrees |
Return value
This member returns no value
Usage notes
- Use this API in the page drawing workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak