SharpAstro.Vector 3.39.1951

This package has a SemVer 2.0.0 package version: 3.39.1951+53002a88911ee84193e0a0faa2437fe36454483e.
There is a newer version of this package available.
See the version list below for details.
dotnet add package SharpAstro.Vector --version 3.39.1951
                    
NuGet\Install-Package SharpAstro.Vector -Version 3.39.1951
                    
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="SharpAstro.Vector" Version="3.39.1951" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpAstro.Vector" Version="3.39.1951" />
                    
Directory.Packages.props
<PackageReference Include="SharpAstro.Vector" />
                    
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 SharpAstro.Vector --version 3.39.1951
                    
#r "nuget: SharpAstro.Vector, 3.39.1951"
                    
#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 SharpAstro.Vector@3.39.1951
                    
#: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=SharpAstro.Vector&version=3.39.1951
                    
Install as a Cake Addin
#tool nuget:?package=SharpAstro.Vector&version=3.39.1951
                    
Install as a Cake Tool

SharpAstro.Vector

A format-neutral vector scene for .NET, with no dependencies. The namespace is SharpAstro.VectorGraphics (not SharpAstro.Vector, which would hide System.Numerics.Vector from any consumer in a SharpAstro.* namespace).

  • VectorScene: nodes in painting order, in a y-down coordinate system of a given width and height.
  • VectorShape: a VectorPath with a transform, an optional VectorFill and an optional VectorStroke.
  • VectorGroup: children that must be drawn into one layer, which is cut to its Clip (a VectorClip: a union of outlines) and multiplied by its Mask (a VectorMask: a little scene, by luminance or alpha) when it has them, and then blended at an opacity.
  • VectorImage: a raster picture, carried as the file it is (or only named by its address), with the box it goes in and how it is fitted. The scene does not decode it.
  • VectorPath / PathBuilder / IPathSink: absolute move, line, quad, cubic and close.
  • SolidPaint, LinearGradientPaint, RadialGradientPaint (two circles), PatternPaint (a repeated tile): what a fill or stroke paints with. A gradient carries its stops, its extend mode and a transform from gradient space to the shape's coordinates; a pattern carries its tile's content, the tile and such a transform.
  • Rgba32: an sRGB colour, 8 bits a channel, alpha not premultiplied.

VectorSceneFile.Write / Read turn a scene into bytes and back: a binary form that loads 15 to 50 times faster than an SVG is read. It is a bake and cache format, not an interchange format, and it is not reliably smaller than the SVG. The layout is version 2 since 3.37 (clips, masks, images, patterns); version 1 files are still read.

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
    }
    // else a VectorGroup (a layer: Children, Opacity, Clip, Mask) or a VectorImage
}

A renderer that meets a node or a paint it does not know should say so, not draw something else in its place.

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.
  • 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.

Version Downloads Last Updated
3.40.1991 49 11/18/2026
3.39.1951 240 11/17/2026
3.36.1911 120 11/16/2026
3.36.1891 151 11/16/2026
3.35.1841 33 11/16/2026