gfoidl.CairoSharp.Extensions 2.1.0

dotnet add package gfoidl.CairoSharp.Extensions --version 2.1.0
                    
NuGet\Install-Package gfoidl.CairoSharp.Extensions -Version 2.1.0
                    
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="gfoidl.CairoSharp.Extensions" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="gfoidl.CairoSharp.Extensions" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="gfoidl.CairoSharp.Extensions" />
                    
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 gfoidl.CairoSharp.Extensions --version 2.1.0
                    
#r "nuget: gfoidl.CairoSharp.Extensions, 2.1.0"
                    
#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 gfoidl.CairoSharp.Extensions@2.1.0
                    
#: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=gfoidl.CairoSharp.Extensions&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=gfoidl.CairoSharp.Extensions&version=2.1.0
                    
Install as a Cake Tool

CairoSharp.Extensions

NuGet

Provides some common extensions like drawing shapes, and other helpful[^1] stuff for CairoSharp.

[^1]: at least for me 😉

Shapes

  • Shape (abstract)
  • Circle
  • Square
  • Hexagon

Arrows

  • Arrow
  • Vector (arrow head on one side only)
  • circle arrow head
  • open arrow head

Fonts

FreeType

Loading of FreeType fonts either from

  • file
  • byte array
  • stream

Default Fonts

Type Font
SansSerif Helvetica
Serif DejaVu Serif
MonoSpace Inconsolata

These fonts are available in regular, bold, italic, and bold+italic.

Pango

Support for PangoLayout is given, but not the whole Pango API is implemented.

See ReadMe in Pango for further information.

Loading

PDF, and SVG can be parsed and the drawing loading into a cairo context, for further use.

See ReadMe in loading for further details.

Pixels

Extension methods for ImageSurface to allow easy and fast operation on the pixel data.

Colors

Color spaces

The following color spaces are available:

  • sRGB (the default Color struct as used in cairo)
  • HSV
  • CIE-L*a*b*
  • CIE-XYZ

There are also methods to convert between these color spaces. See Colors for further information.

KnownColors

Are based on the color in System.Drawing which are equal to the web named colors (and they are equal to the SVG named colors). See known_colors.svg for an image that uses all these colors.

Color maps

See Color maps for information.

Product 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 is compatible.  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 was computed.  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 (1)

Showing the top 1 NuGet packages that depend on gfoidl.CairoSharp.Extensions:

Package Downloads
gfoidl.Gtk4.Extensions

Extensions for GTK4 with cairo Graphics Library in mind

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 206 12/7/2025
2.0.0 393 11/20/2025