Skip to content

Commit

Permalink
Update ImageDrawable.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Feb 9, 2020
1 parent d742a18 commit 3d5a06d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Svg.Skia/Drawables/Elements/ImageDrawable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,12 @@ public override void OnDraw(SKCanvas canvas, Attributes ignoreAttributes, Drawab

if (Image != null)
{
canvas.DrawImage(Image, SrcRect, DestRect);
using var skImagePaint = new SKPaint()
{
IsAntialias = true,
FilterQuality = SKFilterQuality.High
};
canvas.DrawImage(Image, SrcRect, DestRect, skImagePaint);
}

if (FragmentDrawable != null)
Expand Down

0 comments on commit 3d5a06d

Please sign in to comment.