Skip to content

Commit

Permalink
And this one
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Mar 13, 2024
1 parent c68e2f2 commit f091b79
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion binding/SkiaSharp/SKPath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void Offset (SKPoint offset) =>
Offset (offset.X, offset.Y);

public void Offset (float dx, float dy) =>
Transform (SKMatrix.CreateTranslation (dx, dy));
Transform (in SKMatrix.CreateTranslation (dx, dy));

public void MoveTo (SKPoint point) =>
SkiaApi.sk_path_move_to (Handle, point.X, point.Y);
Expand Down Expand Up @@ -340,6 +340,14 @@ public void Transform (in SKMatrix matrix, SKPath destination)
SkiaApi.sk_path_transform_to_dest (Handle, m, destination.Handle);
}

[Obsolete("Use Transform(in SKMatrix) instead.", true)]
public void Transform (SKMatrix matrix) =>
Transform (in matrix);

[Obsolete("Use Transform(in SKMatrix matrix, SKPath destination) instead.", true)]
public void Transform (SKMatrix matrix, SKPath destination) =>
Transform (in matrix, destination);

public void AddPath (SKPath other, float dx, float dy, SKPathAddMode mode = SKPathAddMode.Append)
{
if (other == null)
Expand Down

0 comments on commit f091b79

Please sign in to comment.