CodeBrix.SkiaSvg.MitLicenseForever
1.0.196.342
dotnet add package CodeBrix.SkiaSvg.MitLicenseForever --version 1.0.196.342
NuGet\Install-Package CodeBrix.SkiaSvg.MitLicenseForever -Version 1.0.196.342
<PackageReference Include="CodeBrix.SkiaSvg.MitLicenseForever" Version="1.0.196.342" />
<PackageVersion Include="CodeBrix.SkiaSvg.MitLicenseForever" Version="1.0.196.342" />
<PackageReference Include="CodeBrix.SkiaSvg.MitLicenseForever" />
paket add CodeBrix.SkiaSvg.MitLicenseForever --version 1.0.196.342
#r "nuget: CodeBrix.SkiaSvg.MitLicenseForever, 1.0.196.342"
#:package CodeBrix.SkiaSvg.MitLicenseForever@1.0.196.342
#addin nuget:?package=CodeBrix.SkiaSvg.MitLicenseForever&version=1.0.196.342
#tool nuget:?package=CodeBrix.SkiaSvg.MitLicenseForever&version=1.0.196.342
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.
SkiaSharp dependency
The CodeBrix.SkiaSvg.MitLicenseForever NuGet package depends on SkiaSharp 4.150.1 and HarfBuzzSharp 14.2.1.1 — a matched stable release pair. These ship native assets for all supported platforms, including ARM64, so no preview build or platform-specific workaround is required.
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.165.135)
- HarfBuzzSharp (>= 14.2.1.1)
- HarfBuzzSharp.NativeAssets.Linux (>= 14.2.1.1)
- HarfBuzzSharp.NativeAssets.macOS (>= 14.2.1.1)
- HarfBuzzSharp.NativeAssets.Win32 (>= 14.2.1.1)
- SkiaSharp (>= 4.150.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on CodeBrix.SkiaSvg.MitLicenseForever:
| Package | Downloads |
|---|---|
|
CodeBrix.Platform.Svg.ApacheLicenseForever
SVG rendering support (SvgImageSource on Skia targets) for CodeBrix.Platform applications. |
|
|
CodeBrix.Platform.WinUI.Skia.ApacheLicenseForever
CodeBrix Toolkit for use with WinUI applications - providing Skia graphics and SVG image parsing/rendering functionality. |
|
|
CodeBrix.Platform.GameEngine.MitLicenseForever
A fully managed, cross-platform 2D and 2.5D game engine for .NET, with tile maps, sprites, layered scenes, camera/view systems, animation, physics/collision, input, audio, and SkiaSharp rendering. Includes the CodeBrix.Platform host layer. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.196.342 | 112 | 7/15/2026 |
| 1.0.193.426 | 121 | 7/12/2026 |
| 1.0.180.239 | 261 | 6/29/2026 |
| 1.0.165.152 | 122 | 6/14/2026 |
| 1.0.117 | 142 | 4/29/2026 |
| 1.0.102 | 121 | 4/14/2026 |