VectSharp  2.2.1
A light library for C# vector graphics
VectSharp Namespace Reference

Classes

class  Brush
 Represents a brush used to fill or stroke graphics elements. This could be a solid colour, or a more complicated gradient or pattern. More...
 
struct  Colour
 Represents an RGB colour. More...
 
class  Colours
 Standard colours. More...
 
class  DefaultFontLibrary
 A default font library that resolves standard families using the embedded fonts. More...
 
class  DisposableIntPtr
 An IDisposable wrapper around an IntPtr that frees the allocated memory when it is disposed. More...
 
class  Document
 Represents a collection of pages. More...
 
class  Font
 Represents a typeface with a specific size. More...
 
class  FontFamily
 Represents a typeface. More...
 
class  FontFamilyCreationException
 An exception that occurs while creating a FontFamily. More...
 
class  FontLibrary
 Abstract class with a default implementation of font family fallbacks. More...
 
class  FormattedText
 Represents a run of text that should be drawn with the same style. More...
 
class  FormattedTextExtensions
 Contains extension methods for collections of FormattedText objects. More...
 
class  GradientBrush
 Represents a brush painting with a gradient. More...
 
struct  GradientStop
 Represents a colour stop in a gradient. More...
 
class  GradientStops
 Represents a read-only list of GradientStops. More...
 
class  Graphics
 Represents an abstract drawing surface. More...
 
class  GraphicsPath
 Represents a graphics path that can be filled or stroked. More...
 
interface  IFontLibrary
 Represents a font library with methods to create FontFamily objects from a string or from FontFamily.StandardFontFamilies. More...
 
interface  IGraphicsContext
 This interface should be implemented by classes intended to provide graphics output capability to a Graphics object. More...
 
class  LinearGradientBrush
 Represents a brush painting with a linear gradient. More...
 
struct  LineDash
 Represents instructions on how to paint a dashed line. More...
 
class  Page
 Represents a Graphics object with a width and height. More...
 
struct  Point
 Represents a point relative to an origin in the top-left corner. More...
 
class  RadialGradientBrush
 Represents a brush painting with a radial gradient. More...
 
class  RasterImage
 Represents a raster image, created from raw pixel data. Consider using the derived classes included in the NuGet package "VectSharp.MuPDFUtils" if you need to load a raster image from a file or a Stream. More...
 
struct  Rectangle
 Represents a rectangle. More...
 
class  ResourceFontFamily
 Represents a FontFamily created from a resource stream. More...
 
class  Segment
 Represents a segment as part of a GraphicsPath. More...
 
class  SimpleFontLibrary
 A font library that can be used to cache and resolve font family names. More...
 
struct  Size
 Represents the size of an object. More...
 
class  SolidColourBrush
 Represents a brush painting with a single solid colour. More...
 
class  TrueTypeFile
 Represents a font file in TrueType format. Reference: http://stevehanov.ca/blog/?id=143, https://developer.apple.com/fonts/TrueType-Reference-Manual/, https://docs.microsoft.com/en-us/typography/opentype/spec/ More...
 
class  UnbalancedStackException
 The exception that is thrown when an unbalanced graphics state stack occurs. More...
 

Enumerations

enum  TextBaselines { TextBaselines.Top, TextBaselines.Bottom, TextBaselines.Middle, TextBaselines.Baseline }
 Represent text baselines. More...
 
enum  TextAnchors { TextAnchors.Left, TextAnchors.Center, TextAnchors.Right }
 Represents text anchors. More...
 
enum  LineCaps { LineCaps.Butt = 0, LineCaps.Round = 1, LineCaps.Square = 2 }
 Represents line caps. More...
 
enum  LineJoins { LineJoins.Bevel = 2, LineJoins.Miter = 0, LineJoins.Round = 1 }
 Represents line joining options. More...
 
enum  SegmentType {
  SegmentType.Move, SegmentType.Line, SegmentType.CubicBezier, SegmentType.Arc,
  SegmentType.Close
}
 Types of Segment. More...
 
enum  UnbalancedStackActions { UnbalancedStackActions.Throw, UnbalancedStackActions.SilentlyFix, UnbalancedStackActions.Ignore }
 Represents ways to deal with unbalanced graphics state stacks. More...
 
enum  Script { Script.Normal, Script.Superscript, Script.Subscript }
 Represents the position of the text. More...
 
enum  PixelFormats { PixelFormats.RGB, PixelFormats.RGBA, PixelFormats.BGR, PixelFormats.BGRA }
 Represents the pixel format of a raster image. More...
 

Enumeration Type Documentation

◆ LineCaps

enum VectSharp.LineCaps
strong

Represents line caps.

Enumerator
Butt 

The ends of the line are squared off at the endpoints.

Round 

The ends of the lines are rounded.

Square 

The ends of the lines are squared off by adding an half square box at each end.

Definition at line 70 of file Enums.cs.

◆ LineJoins

enum VectSharp.LineJoins
strong

Represents line joining options.

Enumerator
Bevel 

Consecutive segments are joined by straight corners.

Miter 

Consecutive segments are joined by extending their outside edges until they meet.

Round 

Consecutive segments are joined by arc segments.

Definition at line 91 of file Enums.cs.

◆ PixelFormats

Represents the pixel format of a raster image.

Enumerator
RGB 

RGB 24bpp format.

RGBA 

RGBA 32bpp format.

BGR 

BGR 24bpp format.

BGRA 

BGR 32bpp format.

Definition at line 27 of file RasterImage.cs.

◆ Script

enum VectSharp.Script
strong

Represents the position of the text.

Enumerator
Normal 

The text is normal text.

Superscript 

The text is a superscript.

Subscript 

The text is a subscript.

Definition at line 29 of file FormattedText.cs.

◆ SegmentType

enum VectSharp.SegmentType
strong

Types of Segment.

Enumerator
Move 

The segment represents a move from the current point to a new point.

Line 

The segment represents a straight line from the current point to a new point.

CubicBezier 

The segment represents a cubic bezier curve from the current point to a new point.

Arc 

The segment represents a circular arc from the current point to a new point.

Close 

The segment represents the closing segment of a figure.

Definition at line 151 of file Enums.cs.

◆ TextAnchors

enum VectSharp.TextAnchors
strong

Represents text anchors.

Enumerator
Left 

The current coordinate will determine the position of the left side of the text string.

Center 

The current coordinate will determine the position of the center of the text string.

Right 

The current coordinate will determine the position of the right side of the text string.

Definition at line 49 of file Enums.cs.

◆ TextBaselines

Represent text baselines.

Enumerator
Top 

The current vertical coordinate determines where the top of the text string will be placed.

Bottom 

The current vertical coordinate determines where the bottom of the text string will be placed.

Middle 

The current vertical coordinate determines where the middle of the text string will be placed.

Baseline 

The current vertical coordinate determines where the baseline of the text string will be placed.

Definition at line 23 of file Enums.cs.

◆ UnbalancedStackActions

Represents ways to deal with unbalanced graphics state stacks.

Enumerator
Throw 

If the graphics state stack is unbalanced, an exception will be thrown.

SilentlyFix 

The graphics state stack will be automatically balanced by adding or removing calls to Graphics.Restore as necessary.

Ignore 

No attempt will be made at correcting an unbalanced graphics state stack. This may cause issues with some consumers.

Definition at line 182 of file Enums.cs.