Skip to content

Commit

Permalink
Merge pull request #192 from Youssef1313/patch-1
Browse files Browse the repository at this point in the history
Keep binary compatibility for recent SKSvg breaking changes
  • Loading branch information
wieslawsoltes authored Dec 4, 2023
2 parents 3f869f1 + 18bbc57 commit 7047cb9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Svg.Skia/SKSvg.Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ public static SKSvg CreateFromStream(System.IO.Stream stream, Dictionary<string,
return skSvg;
}

public static SKSvg CreateFromStream(System.IO.Stream stream) => CreateFromStream(stream, null);

public static SKSvg CreateFromFile(string path, Dictionary<string, string>? entities = null)
{
var skSvg = new SKSvg();
skSvg.Load(path, entities);
return skSvg;
}

public static SKSvg CreateFromFile(string path) => CreateFromFile(path, null);

public static SKSvg CreateFromXmlReader(XmlReader reader)
{
var skSvg = new SKSvg();
Expand Down Expand Up @@ -106,6 +110,8 @@ public SKSvg()
return null;
}

public SkiaSharp.SKPicture? Load(System.IO.Stream stream) => Load(stream, null);

public SkiaSharp.SKPicture? Load(string path, Dictionary<string, string>? entities = null)
{
Reset();
Expand All @@ -120,6 +126,8 @@ public SKSvg()
return null;
}

public SkiaSharp.SKPicture? Load(string path) => Load(path, null);

public SkiaSharp.SKPicture? Load(XmlReader reader)
{
Reset();
Expand Down

0 comments on commit 7047cb9

Please sign in to comment.