SharpAstro.Vector
3.35.1841
See the version list below for details.
dotnet add package SharpAstro.Vector --version 3.35.1841
NuGet\Install-Package SharpAstro.Vector -Version 3.35.1841
<PackageReference Include="SharpAstro.Vector" Version="3.35.1841" />
<PackageVersion Include="SharpAstro.Vector" Version="3.35.1841" />
<PackageReference Include="SharpAstro.Vector" />
paket add SharpAstro.Vector --version 3.35.1841
#r "nuget: SharpAstro.Vector, 3.35.1841"
#:package SharpAstro.Vector@3.35.1841
#addin nuget:?package=SharpAstro.Vector&version=3.35.1841
#tool nuget:?package=SharpAstro.Vector&version=3.35.1841
SharpAstro.Vector
A format-neutral vector scene for .NET, with no dependencies.
VectorScene: nodes in painting order, in a y-down coordinate system of a given width and height.VectorShape: aVectorPathwith a transform, an optionalVectorFilland an optionalVectorStroke.VectorGroup: children that must be drawn into one layer and blended at an opacity.VectorPath/PathBuilder/IPathSink: absolute move, line, quad, cubic and close.Rgba32: an sRGB colour, 8 bits a channel, alpha not premultiplied.
There is no rasteriser and no font code here. A reader such as SharpAstro.Svg produces a scene; the caller
draws it with whatever renderer it has, by replaying each path into its own IPathSink.
foreach (VectorNode node in scene.Nodes)
{
if (node is VectorShape shape)
{
shape.Path.Replay(mySink); // geometry, in the shape's local units
// shape.Transform, shape.Fill, shape.Stroke say how to paint it
}
}
| 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
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SharpAstro.Vector:
| Package | Downloads |
|---|---|
|
SharpAstro.Fonts
Pure-managed, MIT-licensed C# OpenType / TrueType font loader and rasterizer. |
|
|
SharpAstro.Svg
Pure C# SVG reader for .NET that resolves a document into a SharpAstro.Vector scene (paths, fills, strokes, transforms, opacity groups) and leaves drawing to the caller: no rasteriser, no font code, not a pixel decoder. Written from the W3C SVG specifications. Reads paths, basic shapes, transforms, viewports, use and symbol, solid and gradient paints, stroke properties and style sheets, and reports everything it does not read. |
GitHub repositories
This package is not used by any popular GitHub repositories.