Adds a line to the current figure of this path.
Namespace: RSGdiPlusGraphics
Delphi
|
public
function AddLine( const x1, y1, x2, y2: Single ): TRSGPPath; overload;
|
Parameters
x1
Type: Single
Real number that specifies the x-coordinate of the starting point of the line.
y1
Type: Single
Real number that specifies the y-coordinate of the starting point of the line.
x2
Type: Single
Real number that specifies the x-coordinate of the ending point of the line.
y2
Type: Single
Real number that specifies the y-coordinate of the ending point of the line.
Return Value
Type: TRSGPPath
The function returns the current path so that you can chain together commands, e.g., aPath.MoveTo(PointF(50,50)).LineTo(PointF(100,100).AddPolygon(Polygon1).AddEllipse(RectF(10,10,200,100));
|
Reference
•RSGdiPlusGraphics.TRSGPPath.AddArc(Single,Single,Single,Single,Single,Single) •RSGdiPlusGraphics.TRSGPPath.AddPie(Single,Single,Single,Single,Single,Single) •RSGdiPlusGraphics.TRSGPPath.AddEllipse(TRectF) •RSGdiPlusGraphics.TRSGPPath.AddRectangle(TRectF,Single,Single,TRSCorners,TRSCornerType) •RSGdiPlusGraphics.TRSGPPath.AddBezier(TPointF,TPointF,TPointF,TPointF) •RSGdiPlusGraphics.TRSGPPath.Points[Integer] •RSGdiPlusGraphics.TRSGPPath.AddLine(TPointF,TPointF) •RSGdiPlusGraphics.TRSGPPath.AddPolygon(TPointF[]) •RSGdiPlusGraphics.TRSGPPath.AddText(TPointF,String,TRSGPFont,TRSGPStringFormat) •RSGdiPlusGraphics.TRSGPPath.AddPath(TRSGPPath) •TRSGPPath •RSGdiPlusGraphics |