Aprillz.MewUI.Svg
0.19.1
dotnet add package Aprillz.MewUI.Svg --version 0.19.1
NuGet\Install-Package Aprillz.MewUI.Svg -Version 0.19.1
<PackageReference Include="Aprillz.MewUI.Svg" Version="0.19.1" />
<PackageVersion Include="Aprillz.MewUI.Svg" Version="0.19.1" />
<PackageReference Include="Aprillz.MewUI.Svg" />
paket add Aprillz.MewUI.Svg --version 0.19.1
#r "nuget: Aprillz.MewUI.Svg, 0.19.1"
#:package Aprillz.MewUI.Svg@0.19.1
#addin nuget:?package=Aprillz.MewUI.Svg&version=0.19.1
#tool nuget:?package=Aprillz.MewUI.Svg&version=0.19.1
Aprillz.MewUI.Svg
SVG rendering for MewUI, drawn through MewUI's IGraphicsContext.
Pure managed, no System.Drawing - built on SVG.NET with a MewUI
rendering backend, so it works on every MewUI backend (Direct2D, GDI, MewVG/OpenGL) and is
NativeAOT/trim compatible.
SvgImageSource plugs into the standard Image control and stays crisp at any size (it re-renders
at the laid-out size, not a stretched bitmap):
using Aprillz.MewUI.Controls;
using Aprillz.MewUI.Svg;
var image = new Image
{
Source = SvgImageSource.FromFile("icon.svg"), // or FromString / FromStream / FromResource
StretchMode = Stretch.Uniform,
}.Size(24, 24);
// recolor a monochrome icon (re-renders automatically)
var src = SvgImageSource.FromFile("home.svg");
src.Tint = Colors.White;
For direct document access the SVG.NET engine type Svg.SvgDocument is also available
(SvgDocument.Open/Parse + doc.Render(context, rect)).
Depends on Aprillz.MewUI and ExCSS. Bundles SVG.NET (Ms-PL); see THIRD_PARTY_NOTICES.md.
Full docs: https://github.com/aprillz/MewUI/blob/main/extensions/MewUI.Svg/README.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Aprillz.MewUI.Core (>= 0.19.1)
- ExCSS (>= 4.3.1)
-
net8.0
- Aprillz.MewUI.Core (>= 0.19.1)
- ExCSS (>= 4.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.