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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeBrix.SkiaSvg.MitLicenseForever" Version="1.0.102" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.SkiaSvg.MitLicenseForever" Version="1.0.102" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.SkiaSvg.MitLicenseForever" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeBrix.SkiaSvg.MitLicenseForever --version 1.0.102
                    
#r "nuget: CodeBrix.SkiaSvg.MitLicenseForever, 1.0.102"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeBrix.SkiaSvg.MitLicenseForever@1.0.102
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeBrix.SkiaSvg.MitLicenseForever&version=1.0.102
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.SkiaSvg.MitLicenseForever&version=1.0.102
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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