dotnetprojects/SVGImage
Tentang
A SVGImage Control for WPF
Desain dan mediaYang dapat Anda lakukan
- Geometry - Basic shapes, paths/curves/arcs, transforms and groups
- Composition - Luminance/alpha masks, clip paths, patterns, symbol/use and nested viewports
- Paint - Linear/radial gradients, spreading, CSS colors, per-use opacity and color overrides
- Text - Styled spans, text anchoring and glyphs along a textPath
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliSVGImage
SVG, naturally at home in WPF.
A native WPF SVG control and Drawing-based renderer for icons, illustrations and supported animation.
Homepage · Get started · SVG support · Changelog · NuGet

Original examples, rendered with SVGImage. Explore the SVG sources.
What can it render?
| Area | Current source support |
|---|---|
| Geometry | Basic shapes, paths/curves/arcs, transforms and groups |
| Composition | Luminance/alpha masks, clip paths, patterns, symbol/use and nested viewports |
| Paint | Linear/radial gradients, spreading, CSS colors, per-use opacity and color overrides |
| Text | Styled spans, text anchoring and glyphs along a textPath |
| Filters | Turbulence, displacement, flood, offset, merge, composite, color matrices, component transfer, blend, blur, morphology and tile |
| CSS | Author cascade, supported selectors, specificity, variables and transform/opacity keyframes |
| SMIL | Native clocks, transforms, motion paths, supported properties, timing and explicit events |
| WPF | Drawing access, intrinsic button sizing, grayscale and deterministic seeking |
See the support reference for scope and limits. The current source includes unreleased changes; published package availability is recorded in the changelog. The full SVG/resvg specification remains a work in progress.
Get started
Install a published package:
dotnet add package DotNetProjects.SVGImage
Add xmlns:svg="https://github.com/dotnetprojects/SVGImage" to your WPF window, then use:
<svg:SVGImage UriSource="Assets/illustration.svg"
Width="320" Height="240"
UseAnimations="True"
SizeType="ViewBoxToSizeNoStretch" />
Add the SVG as Content and copy it to your output directory. Installation and first steps →
Frameworks
Windows / WPF. Targets: .NET Framework 4.0, 4.5, 4.6, 4.7, 4.8, .NET Core 3.1, and .NET 6, 7, 8 for Windows.
dotnet build Source/SVGImage/DotNetProjects.SVGImage.csproj -p:GeneratePackageOnBuild=false
Use Source/SVGImage.sln with Visual Studio 2022. For unreleased features, reference the current library project or a locally built DLL.
Documentation and change history
- Homepage and native-rendered gallery
- Support reference and ongoing changelog
- Masks, CSS, animation, rendering and filters, grayscale
- Samples and regression checks
Selected verification includes 223 external SVG checks, 14 animation examples and a mask fixture compared against Chromium. Downloaded samples/reference suites remain outside the repository.
Contributing and license
Contributions and SVG reproductions are welcome. See CONTRIBUTING.md; user-visible changes belong in the changelog, which also feeds the website.
MIT licensed, with permission from the original author. Originally forked from the SVGImage Control CodeProject article.
Jelajahi proyek terkait
Memuat…