This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// memoryStream is the stream of the svg url | |
// imageStream is the converted png which will be converted with Splat.BitmapLoader to an IBitmap | |
var svg = new SkiaSharp.Extended.Svg.SKSvg(); | |
svg.Load(memoryStream); | |
var imageInfo = new SKImageInfo((int)desiredSize.Width, (int)desiredSize.Height); | |
using (var surface = SKSurface.Create(imageInfo)) | |
using (var canvas = surface.Canvas) | |
{ |