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
<PackageReference Include="gfoidl.CairoSharp.Extensions" Version="2.1.0" />
<PackageVersion Include="gfoidl.CairoSharp.Extensions" Version="2.1.0" />
<PackageReference Include="gfoidl.CairoSharp.Extensions" />
paket add gfoidl.CairoSharp.Extensions --version 2.1.0
#r "nuget: gfoidl.CairoSharp.Extensions, 2.1.0"
#:package gfoidl.CairoSharp.Extensions@2.1.0
#addin nuget:?package=gfoidl.CairoSharp.Extensions&version=2.1.0
#tool nuget:?package=gfoidl.CairoSharp.Extensions&version=2.1.0
CairoSharp.Extensions
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
Colorstruct 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 | 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 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. |
-
net8.0
- gfoidl.CairoSharp (>= 2.1.0)
-
net9.0
- gfoidl.CairoSharp (>= 2.1.0)
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.