Skip to content

Commit

Permalink
Use a 32-bit color so save the .png (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Apr 21, 2020
1 parent 91d0aa2 commit dfbeff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resizetizer.NT/SkiaSharpSvgTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void Resize(DpiPath dpi, string destination)

using (var stream = File.OpenWrite(destination))
{
svg.Picture.ToImage(stream, SKColors.Empty, SKEncodedImageFormat.Png, 100, (float)adjustRatio, (float)adjustRatio, SKColorType.Argb4444, SKAlphaType.Premul);
svg.Picture.ToImage(stream, SKColors.Empty, SKEncodedImageFormat.Png, 100, (float)adjustRatio, (float)adjustRatio, SKColorType.Rgba8888, SKAlphaType.Premul);
}

sw.Stop();
Expand Down

0 comments on commit dfbeff4

Please sign in to comment.