|
@@ -292,6 +292,7 @@ type
|
|
procedure AddLineToPath(AX, AY: Double); overload;
|
|
procedure AddLineToPath(AX, AY: Double); overload;
|
|
procedure AddLineToPath(AX, AY: Double; AColor: TvColor); overload;
|
|
procedure AddLineToPath(AX, AY: Double; AColor: TvColor); overload;
|
|
procedure AddLineToPath(AX, AY, AZ: Double); overload;
|
|
procedure AddLineToPath(AX, AY, AZ: Double); overload;
|
|
|
|
+ procedure GetCurrenPathPenPos(var AX, AY: Double);
|
|
procedure AddBezierToPath(AX1, AY1, AX2, AY2, AX3, AY3: Double); overload;
|
|
procedure AddBezierToPath(AX1, AY1, AX2, AY2, AX3, AY3: Double); overload;
|
|
procedure AddBezierToPath(AX1, AY1, AZ1, AX2, AY2, AZ2, AX3, AY3, AZ3: Double); overload;
|
|
procedure AddBezierToPath(AX1, AY1, AZ1, AX2, AY2, AZ2, AX3, AY3, AZ3: Double); overload;
|
|
procedure SetBrushColor(AColor: TvColor);
|
|
procedure SetBrushColor(AColor: TvColor);
|
|
@@ -661,6 +662,18 @@ begin
|
|
AppendSegmentToTmpPath(segment);
|
|
AppendSegmentToTmpPath(segment);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+{@@
|
|
|
|
+ Gets the current Pen Pos in the temporary path
|
|
|
|
+}
|
|
|
|
+procedure TvVectorialDocument.GetCurrenPathPenPos(var AX, AY: Double);
|
|
|
|
+begin
|
|
|
|
+ // Check if we are the first segment in the tmp path
|
|
|
|
+ if FTmpPath.PointsEnd = nil then raise Exception.Create('[TvVectorialDocument.GetCurrenPathPenPos] One cannot obtain the Pen Pos if there are no segments in the temporary path');
|
|
|
|
+
|
|
|
|
+ AX := T2DSegment(FTmpPath.PointsEnd).X;
|
|
|
|
+ AY := T2DSegment(FTmpPath.PointsEnd).Y;
|
|
|
|
+end;
|
|
|
|
+
|
|
{@@
|
|
{@@
|
|
Adds a bezier element to the path. It starts where the previous element ended
|
|
Adds a bezier element to the path. It starts where the previous element ended
|
|
and it goes throw the control points [AX1, AY1] and [AX2, AY2] and ends
|
|
and it goes throw the control points [AX1, AY1] and [AX2, AY2] and ends
|