Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.84 KB

File metadata and controls

76 lines (47 loc) · 1.84 KB

CairoSharp.Extensions

NuGet

Provides some common extensions like drawing shapes, and other helpful1 stuff for CairoSharp.

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.

Footnotes

  1. at least for me 😉