SKSvgCanvas.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(SKRect, SKWStream) |
Creates a new SKCanvas which generates SVG commands and writes them to the specified stream. |
| Create(SKRect, Stream) |
Creates a new SKCanvas which generates SVG commands and writes them to the specified .NET stream. |
Create(SKRect, SKWStream)
Creates a new SKCanvas which generates SVG commands and writes them to the specified stream.
public static SkiaSharp.SKCanvas Create(SkiaSharp.SKRect bounds, SkiaSharp.SKWStream stream);
Parameters
- bounds
- SKRect
The initial SVG viewport (viewBox attribute on the root SVG element).
- stream
- SKWStream
The SkiaSharp stream to write the SVG data to.
Returns
Returns the new SVG canvas.
Remarks
The canvas may buffer some drawing calls, so the output is not guaranteed to be valid or complete until the canvas instance is disposed. The stream must remain valid during the lifetime of the returned canvas.
Applies to
Create(SKRect, Stream)
Creates a new SKCanvas which generates SVG commands and writes them to the specified .NET stream.
public static SkiaSharp.SKCanvas Create(SkiaSharp.SKRect bounds, System.IO.Stream stream);
Parameters
- bounds
- SKRect
The initial SVG viewport (viewBox attribute on the root SVG element).
- stream
- Stream
The .NET stream to write the SVG data to.
Returns
Returns the new SVG canvas.
Remarks
The canvas may buffer some drawing calls, so the output is not guaranteed to be valid or complete until the canvas instance is disposed. The stream must remain valid during the lifetime of the returned canvas.