(int)svg.CanvasSize.Height)) using (SKCanvas canvas = new SKCanvas(bitmap)) { canvas.DrawPicture(svg.Picture); canvas.Flush(); canvas.Save();複製
```csharp SKSvg svg = new SKSvg(); svg.Load(Your SVG stream or file); using (SKBitmap bitmap = new SKBitmap((int)svg.CanvasSize.Width, (int)svg.CanvasSize.Height)) using (SKCanvas canvas = new SKCanvas(bitmap)) { canvas.DrawPicture(svg.Picture); canvas.Flush(); canvas.Save(...