TIEPDFBuilder.AddLinePath
Declaration
procedure AddLinePath(Points: array of TDPoint; Closed: boolean;
LineColor: TColor; LineWidth: double = 1.0; LineOpacity: double = 1.0; EndingCap: TIEPDFEndingCap = iepdfButtCaps;
Filled: boolean = false; FillColor: TColor = clBlack; FillOpacity: double = 1.0); overload;
procedure AddLinePath(Points: array of TPoint; PointCount: Integer; Closed: boolean;
LineColor: TColor; LineWidth: double = 1.0; LineOpacity: double = 1.0; EndingCap: TIEPDFEndingCap = iepdfButtCaps;
Filled: boolean = false; FillColor: TColor = clBlack; FillOpacity: double = 1.0); overload;
Description
Adds a line or shape to the current page.
Parameter | Description |
Points | An array of points forming a line or a shape (units are Adobe points) |
Closed | True to close the end of the path to the start |
LineColor | Color of the line |
LineWidth | Width of the line (in Adobe points) |
LineOpacity | Opacity of line (0: Fully Transparent to 1.0: Fully opaque) |
Filled | True to fill the ellipse with a color. False if fill is transparent |
FillColor | Color of the ellipse fill. clNone if there is no fill (even if Filled = True) |
FillOpacity | Opacity of ellipse fill (0: Fully Transparent to 1.0: Fully opaque) |
Note: "Current Page" is the page that has just been
added or set using
CurrentPageIndex
pdf.AddLinePath([DPoint(50, 400), DPoint(300, 600), DPoint(180, 780), DPoint(30, 420)], True, clYellow, 0.7, 4, iepdfRoundCaps, True, clGreen, 0.3);
Compatibility Information
In v13.0.0, a Closed parameter was added after the Points/PointCount parameter(s). You should specify True if the line path should be closed as a polygon.
See Also
◼AddEllipse
◼AddImage
◼AddShape
◼AddText