CodeBrix.SkiaSvg.MitLicenseForever
1.0.102
dotnet add package CodeBrix.SkiaSvg.MitLicenseForever --version 1.0.102
NuGet\Install-Package CodeBrix.SkiaSvg.MitLicenseForever -Version 1.0.102
<PackageReference Include="CodeBrix.SkiaSvg.MitLicenseForever" Version="1.0.102" />
<PackageVersion Include="CodeBrix.SkiaSvg.MitLicenseForever" Version="1.0.102" />
<PackageReference Include="CodeBrix.SkiaSvg.MitLicenseForever" />
paket add CodeBrix.SkiaSvg.MitLicenseForever --version 1.0.102
#r "nuget: CodeBrix.SkiaSvg.MitLicenseForever, 1.0.102"
#:package CodeBrix.SkiaSvg.MitLicenseForever@1.0.102
#addin nuget:?package=CodeBrix.SkiaSvg.MitLicenseForever&version=1.0.102
#tool nuget:?package=CodeBrix.SkiaSvg.MitLicenseForever&version=1.0.102
CodeBrix.SkiaSvg
An SVG loading and rendering library for .NET, built on SkiaSharp.
CodeBrix.SkiaSvg is provided as a .NET 10 library and associated CodeBrix.SkiaSvg.MitLicenseForever NuGet package.
CodeBrix.SkiaSvg supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.
CodeBrix.SkiaSvg is a fork of the code of the open source Svg.Skia library (and several of its companion packages) - see below for licensing details.
CodeBrix.SkiaSvg supports:
- SVG loading from files, streams, strings, and XmlReaders
- SVG rendering to SkiaSharp SKPicture and SKCanvas
- Android VectorDrawable loading and rendering
- Export to PNG, JPEG, BMP, GIF, TIFF, SVG, PDF, and XPS
- Hit testing (point and rectangle) on SVG elements
- Retained scene graph for efficient rendering and mutation
- SVG animation support with time-based control
- Native composition layer decomposition for optimized animation
- Pointer/mouse interaction dispatching
- Custom typeface/font provider support
- Text shaping via HarfBuzz
- Wireframe debug rendering
- Many more...
Sample Code
Load and Render an SVG
using CodeBrix.SkiaSvg;
using var svg = SKSvg.CreateFromFile("image.svg");
canvas.DrawPicture(svg.Picture);
Save SVG as a PNG
using CodeBrix.SkiaSvg;
using SkiaSharp;
using var svg = SKSvg.CreateFromFile("image.svg");
svg.Save("output.png", SKColors.White, SKEncodedImageFormat.Png, 100, 1f, 1f);
Hit Test an SVG Element
using CodeBrix.SkiaSvg;
using SkiaSharp;
using var svg = SKSvg.CreateFromFile("interactive.svg");
var point = new SKPoint(100, 100);
var element = svg.HitTestTopmostElement(point);
if (element != null)
{
Console.WriteLine($"Hit: {element.ElementName} (ID: {element.ID})");
}
Load from SVG String
using CodeBrix.SkiaSvg;
var svgContent = "<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>" +
"<circle cx='50' cy='50' r='40' fill='blue'/></svg>";
using var svg = SKSvg.CreateFromSvg(svgContent);
canvas.DrawPicture(svg.Picture);
Note that additional sample code and usage examples are available in the CodeBrix.SkiaSvg.Tests project.
License
The project is licensed under the MIT License. see: https://en.wikipedia.org/wiki/MIT_License
All code originating from Svg.Skia was included as allowed by the MIT License permissible open source software license - as of Svg.Skia version 4.2.0. This project (CodeBrix.SkiaSvg) complies with all provisions of the source code license of Svg.Skia v4.2.0 (MIT License).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- CodeBrix.SvgParse.MsplLicenseForever (>= 1.0.102)
- HarfBuzzSharp (>= 8.3.1.3)
- HarfBuzzSharp.NativeAssets.Linux (>= 8.3.1.3)
- HarfBuzzSharp.NativeAssets.macOS (>= 8.3.1.3)
- HarfBuzzSharp.NativeAssets.Win32 (>= 8.3.1.3)
- SkiaSharp (>= 3.119.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.102 | 92 | 4/14/2026 |