PdfSharp-WPF  1.31.7289
PdfSharp.Drawing Namespace Reference

Namespaces

namespace  BarCodes
 
namespace  Layout
 
namespace  Pdf
 

Classes

class  FontHelper
 Helper class for fonts.
 
class  GeometryHelper
 Helper class for Geometry paths.
 
class  GraphicsStateStack
 Represents a stack of XGraphicsState and XGraphicsContainer objects.
 
class  ImageHelper
 Helper class for processing image files.
 
class  InternalGraphicsState
 Represents the internal state of an XGraphics object.
 
interface  IXGraphicsRenderer
 Represents an abstract drawing surface for PdfPages.
 
class  XPdfFontOptions
 Specifies details about how the font is used in PDF creation. More...
 
class  XBrush
 Classes derived from this abstract base class define objects used to fill the interiors of paths. More...
 
class  XBrushes
 Brushes for all the pre-defined colors.
 
struct  XColor
 Represents a RGB, CMYK, or gray scale color. More...
 
class  XColorResourceManager
 Manages the localization of the color class. More...
 
class  XColors
 Represents a set of 141 pre-defined RGB colors. Incidentally the values are the same as in System.Drawing.Color.
 
class  XConvert
 Converts XGraphics enums to GDI+ enums.
 
class  XFont
 Defines an object used to draw text. More...
 
class  XFontFamily
 Defines a group of type faces having a similar basic design and certain variations in styles. More...
 
class  XFontMetrics
 Collects information of a font. More...
 
class  XFontStretch
 NYI. Reserved for future extensions of PDFsharp. More...
 
class  XFontWeight
 Defines the density of a typeface, in terms of the lightness or heaviness of the strokes. More...
 
class  XFontWeights
 Defines a set of static predefined XFontWeight values.
 
class  XForm
 Represents a graphical object that can be used to render retained graphics on it. In GDI+ it is represented by a Metafile, in WPF by a DrawingVisual, and in PDF by a Form XObjects. More...
 
class  XGlyphTypeface
 Specifies a physical font face that corresponds to a font file on the disk. More...
 
class  XGraphics
 Represents a drawing surface (or canvas) for a fixed size page. More...
 
class  XGraphicsContainer
 Represents the internal state of an XGraphics object. More...
 
class  XGraphicsPath
 Represents a series of connected lines and curves. More...
 
class  XGraphicsPathInternals
 Provides access to the internal data structures of XGraphicsPath. This class prevents the public interface from pollution with internal functions. More...
 
class  XGraphicsState
 Represents the internal state of an XGraphics object. More...
 
class  XImage
 Defines an object used to draw image files (bmp, png, jpeg, gif) and PDF forms. An abstract base class that provides functionality for the Bitmap and Metafile descended classes. More...
 
class  XImageFormat
 Specifies the format of the image. More...
 
class  XKnownColorTable
 
class  XLinearGradientBrush
 Defines a Brush with a linear gradient. More...
 
struct  XMatrix
 Represents a 3-by-3 matrix that represents an affine 2D transformation. More...
 
class  XPdfForm
 Represents a so called 'PDF form external object', which is typically an imported page of an external PDF document. XPdfForm objects are used like images to draw an existing PDF page of an external document in the current document. XPdfForm objects can only be placed in PDF documents. If you try to draw them using a XGraphics based on an GDI+ context no action is taken if no placeholder image is specified. Otherwise the place holder is drawn. More...
 
class  XPen
 Defines an object used to draw lines and curves. More...
 
class  XPens
 Pens for all the pre-defined colors.
 
struct  XPoint
 Represents a pair of floating point x- and y-coordinates that defines a point in a two-dimensional plane. More...
 
class  XPrivateFontCollection
 Makes fonts that are not installed on the system available within the current application domain. More...
 
struct  XRect
 Stores a set of four floating-point numbers that represent the location and size of a rectangle. More...
 
struct  XSize
 Represents a pair of floating-point numbers, typically the width and height of a graphical object. More...
 
class  XSolidBrush
 Defines a single color object used to fill shapes and draw text. More...
 
class  XStringFormat
 Represents the text layout information. More...
 
class  XStringFormats
 Represents predefined text layouts.
 
class  XTypefaceHack
 Temporary hack to implement PrivateFontCollection. More...
 
class  XTypeface
 NYI
 
struct  XUnit
 Represents a value and its unit of measure. The structure converts implicitly from and to double with a value measured in point. More...
 
struct  XVector
 Represents a two-dimensional vector specified by x- and y-coordinates. More...
 

Enumerations

enum class  PathStart { MoveTo1st , LineTo1st , Ignore1st }
 Indicates how to handle the first point of a path. More...
 
enum class  XColorSpace { Rgb , Cmyk , GrayScale }
 Currently not used. Only DeviceRGB is rendered in PDF. More...
 
enum class  XCombineMode {
  Replace = 0 , Intersect = 1 , Union = 2 , Xor = 3 ,
  Exclude = 4 , Complement = 5
}
 Specifies how different clipping regions can be combined. More...
 
enum class  XDashStyle {
  Solid = 0 , Dash = 1 , Dot = 2 , DashDot = 3 ,
  DashDotDot = 4 , Custom = 5
}
 Specifies the style of dashed lines drawn with an XPen object. More...
 
enum class  XFillMode { Alternate = 0 , Winding = 1 }
 Specifies how the interior of a closed path is filled. More...
 
enum class  XFontStyle {
  Regular = 0 , Bold = 1 , Italic = 2 , BoldItalic = 3 ,
  Underline = 4 , Strikeout = 8
}
 Specifies style information applied to text. More...
 
enum class  XGraphicTargetContext { GDI = 1 , WPF = 2 }
 Determines whether rendering based on GDI+ or WPF. For internal use only. More...
 
enum class  XGraphicsPdfPageOptions { Append , Prepend , Replace }
 Specifies how the content of an existing PDF page and new content is combined. More...
 
enum class  XGraphicsUnit {
  Point = 0 , Inch = 1 , Millimeter = 2 , Centimeter = 3 ,
  Presentation = 4
}
 Specifies the unit of measure. More...
 
enum class  XKnownColor {
  AliceBlue = 0 , AntiqueWhite = 1 , Aqua = 2 , Aquamarine = 3 ,
  Azure = 4 , Beige = 5 , Bisque = 6 , Black = 7 ,
  BlanchedAlmond = 8 , Blue = 9 , BlueViolet = 10 , Brown = 11 ,
  BurlyWood = 12 , CadetBlue = 13 , Chartreuse = 14 , Chocolate = 15 ,
  Coral = 16 , CornflowerBlue = 17 , Cornsilk = 18 , Crimson = 19 ,
  Cyan = 20 , DarkBlue = 21 , DarkCyan = 22 , DarkGoldenrod = 23 ,
  DarkGray = 24 , DarkGreen = 25 , DarkKhaki = 26 , DarkMagenta = 27 ,
  DarkOliveGreen = 28 , DarkOrange = 29 , DarkOrchid = 30 , DarkRed = 31 ,
  DarkSalmon = 32 , DarkSeaGreen = 33 , DarkSlateBlue = 34 , DarkSlateGray = 35 ,
  DarkTurquoise = 36 , DarkViolet = 37 , DeepPink = 38 , DeepSkyBlue = 39 ,
  DimGray = 40 , DodgerBlue = 41 , Firebrick = 42 , FloralWhite = 43 ,
  ForestGreen = 44 , Fuchsia = 45 , Gainsboro = 46 , GhostWhite = 47 ,
  Gold = 48 , Goldenrod = 49 , Gray = 50 , Green = 51 ,
  GreenYellow = 52 , Honeydew = 53 , HotPink = 54 , IndianRed = 55 ,
  Indigo = 56 , Ivory = 57 , Khaki = 58 , Lavender = 59 ,
  LavenderBlush = 60 , LawnGreen = 61 , LemonChiffon = 62 , LightBlue = 63 ,
  LightCoral = 64 , LightCyan = 65 , LightGoldenrodYellow = 66 , LightGray = 67 ,
  LightGreen = 68 , LightPink = 69 , LightSalmon = 70 , LightSeaGreen = 71 ,
  LightSkyBlue = 72 , LightSlateGray = 73 , LightSteelBlue = 74 , LightYellow = 75 ,
  Lime = 76 , LimeGreen = 77 , Linen = 78 , Magenta = 79 ,
  Maroon = 80 , MediumAquamarine = 81 , MediumBlue = 82 , MediumOrchid = 83 ,
  MediumPurple = 84 , MediumSeaGreen = 85 , MediumSlateBlue = 86 , MediumSpringGreen = 87 ,
  MediumTurquoise = 88 , MediumVioletRed = 89 , MidnightBlue = 90 , MintCream = 91 ,
  MistyRose = 92 , Moccasin = 93 , NavajoWhite = 94 , Navy = 95 ,
  OldLace = 96 , Olive = 97 , OliveDrab = 98 , Orange = 99 ,
  OrangeRed = 100 , Orchid = 101 , PaleGoldenrod = 102 , PaleGreen = 103 ,
  PaleTurquoise = 104 , PaleVioletRed = 105 , PapayaWhip = 106 , PeachPuff = 107 ,
  Peru = 108 , Pink = 109 , Plum = 110 , PowderBlue = 111 ,
  Purple = 112 , Red = 113 , RosyBrown = 114 , RoyalBlue = 115 ,
  SaddleBrown = 116 , Salmon = 117 , SandyBrown = 118 , SeaGreen = 119 ,
  SeaShell = 120 , Sienna = 121 , Silver = 122 , SkyBlue = 123 ,
  SlateBlue = 124 , SlateGray = 125 , Snow = 126 , SpringGreen = 127 ,
  SteelBlue = 128 , Tan = 129 , Teal = 130 , Thistle = 131 ,
  Tomato = 132 , Transparent = 133 , Turquoise = 134 , Violet = 135 ,
  Wheat = 136 , White = 137 , WhiteSmoke = 138 , Yellow = 139 ,
  YellowGreen = 140
}
 Specifies all pre-defined colors. Used to identify the pre-defined colors and to localize their names. More...
 
enum class  XLineAlignment { Near = 0 , Center = 1 , Far = 2 , BaseLine = 3 }
 Specifies the alignment of a text string relative to its layout rectangle More...
 
enum class  XLinearGradientMode { Horizontal = 0 , Vertical = 1 , ForwardDiagonal = 2 , BackwardDiagonal = 3 }
 Specifies the direction of a linear gradient. More...
 
enum class  XLineCap { Flat = 0 , Round = 1 , Square = 2 }
 Specifies the available cap styles with which an XPen object can start and end a line. More...
 
enum class  XLineJoin { Miter = 0 , Round = 1 , Bevel = 2 }
 Specifies how to join consecutive line or curve segments in a figure or subpath. More...
 
enum class  XMatrixOrder { Prepend = 0 , Append = 1 }
 Specifies the order for matrix transform operations. More...
 
enum class  XPageDirection { Downwards = 0 , Upwards = 1 }
 Specifies the direction of the y-axis. More...
 
enum class  XSmoothingMode {
  Invalid = -1 , Default = 0 , HighSpeed = 1 , HighQuality = 2 ,
  None = 3 , AntiAlias = 4
}
 Specifies whether smoothing (or antialiasing) is applied to lines and curves and the edges of filled areas. More...
 
enum class  XStringAlignment { Near = 0 , Center = 1 , Far = 2 }
 Specifies the alignment of a text string relative to its layout rectangle. More...
 
enum class  GWV { GetCellAscent , GetCellDescent , GetEmHeight , GetLineSpacing }
 The Get WPF Value flags. More...
 
enum class  XStringFormatFlags { MeasureTrailingSpaces = 0x0800 }
 Not used in this implementation. More...
 

Enumeration Type Documentation

◆ GWV

enum PdfSharp.Drawing.GWV
strong

The Get WPF Value flags.

Enumerator
GetCellAscent 
GetCellDescent 
GetEmHeight 
GetLineSpacing 

◆ PathStart

Indicates how to handle the first point of a path.

Enumerator
MoveTo1st 

Set the current position to the first point.

LineTo1st 

Draws a line to the first point.

Ignore1st 

Ignores the first point.

◆ XColorSpace

Currently not used. Only DeviceRGB is rendered in PDF.

Enumerator
Rgb 

Identifies the RGB color space.

Cmyk 

Identifies the CMYK color space.

GrayScale 

Identifies the gray scale color space.

◆ XCombineMode

Specifies how different clipping regions can be combined.

Enumerator
Replace 

One clipping region is replaced by another.

Intersect 

Two clipping regions are combined by taking their intersection.

Union 

Not yet implemented in PDFsharp.

Xor 

Not yet implemented in PDFsharp.

Exclude 

Not yet implemented in PDFsharp.

Complement 

Not yet implemented in PDFsharp.

◆ XDashStyle

Specifies the style of dashed lines drawn with an XPen object.

Enumerator
Solid 

Specifies a solid line.

Dash 

Specifies a line consisting of dashes.

Dot 

Specifies a line consisting of dots.

DashDot 

Specifies a line consisting of a repeating pattern of dash-dot.

DashDotDot 

Specifies a line consisting of a repeating pattern of dash-dot-dot.

Custom 

Specifies a user-defined custom dash style.

◆ XFillMode

Specifies how the interior of a closed path is filled.

Enumerator
Alternate 

Specifies the alternate fill mode. Called the 'odd-even rule' in PDF terminology.

Winding 

Specifies the winding fill mode. Called the 'nonzero winding number rule' in PDF terminology.

◆ XFontStyle

Specifies style information applied to text.

Enumerator
Regular 

Normal text.

Bold 

Bold text.

Italic 

Italic text.

BoldItalic 

Bold and italic text.

Underline 

Underlined text.

Strikeout 

Text with a line through the middle.

◆ XGraphicsPdfPageOptions

Specifies how the content of an existing PDF page and new content is combined.

Enumerator
Append 

The new content is inserted behind the old content and any subsequent drawing in done above the existing graphic.

Prepend 

The new content is inserted before the old content and any subsequent drawing in done beneath the existing graphic.

Replace 

The new content entirely replaces the old content and any subsequent drawing in done on a blank page.

◆ XGraphicsUnit

Specifies the unit of measure.

Enumerator
Point 

Specifies a printer's point (1/72 inch) as the unit of measure.

Inch 

Specifies the inch (2.54 cm) as the unit of measure.

Millimeter 

Specifies the millimeter as the unit of measure.

Centimeter 

Specifies the centimeter as the unit of measure.

Presentation 

Specifies a presentation point (1/96 inch) as the unit of measure.

◆ XGraphicTargetContext

Determines whether rendering based on GDI+ or WPF. For internal use only.

Enumerator
GDI 

Renders using GDI+.

WPF 

Renders using WPF (including Silverlight).

◆ XKnownColor

Specifies all pre-defined colors. Used to identify the pre-defined colors and to localize their names.

Enumerator
AliceBlue 

A pre-defined color.

AntiqueWhite 

A pre-defined color.

Aqua 

A pre-defined color.

Aquamarine 

A pre-defined color.

Azure 

A pre-defined color.

Beige 

A pre-defined color.

Bisque 

A pre-defined color.

Black 

A pre-defined color.

BlanchedAlmond 

A pre-defined color.

Blue 

A pre-defined color.

BlueViolet 

A pre-defined color.

Brown 

A pre-defined color.

BurlyWood 

A pre-defined color.

CadetBlue 

A pre-defined color.

Chartreuse 

A pre-defined color.

Chocolate 

A pre-defined color.

Coral 

A pre-defined color.

CornflowerBlue 

A pre-defined color.

Cornsilk 

A pre-defined color.

Crimson 

A pre-defined color.

Cyan 

A pre-defined color.

DarkBlue 

A pre-defined color.

DarkCyan 

A pre-defined color.

DarkGoldenrod 

A pre-defined color.

DarkGray 

A pre-defined color.

DarkGreen 

A pre-defined color.

DarkKhaki 

A pre-defined color.

DarkMagenta 

A pre-defined color.

DarkOliveGreen 

A pre-defined color.

DarkOrange 

A pre-defined color.

DarkOrchid 

A pre-defined color.

DarkRed 

A pre-defined color.

DarkSalmon 

A pre-defined color.

DarkSeaGreen 

A pre-defined color.

DarkSlateBlue 

A pre-defined color.

DarkSlateGray 

A pre-defined color.

DarkTurquoise 

A pre-defined color.

DarkViolet 

A pre-defined color.

DeepPink 

A pre-defined color.

DeepSkyBlue 

A pre-defined color.

DimGray 

A pre-defined color.

DodgerBlue 

A pre-defined color.

Firebrick 

A pre-defined color.

FloralWhite 

A pre-defined color.

ForestGreen 

A pre-defined color.

Fuchsia 

A pre-defined color.

Gainsboro 

A pre-defined color.

GhostWhite 

A pre-defined color.

Gold 

A pre-defined color.

Goldenrod 

A pre-defined color.

Gray 

A pre-defined color.

Green 

A pre-defined color.

GreenYellow 

A pre-defined color.

Honeydew 

A pre-defined color.

HotPink 

A pre-defined color.

IndianRed 

A pre-defined color.

Indigo 

A pre-defined color.

Ivory 

A pre-defined color.

Khaki 

A pre-defined color.

Lavender 

A pre-defined color.

LavenderBlush 

A pre-defined color.

LawnGreen 

A pre-defined color.

LemonChiffon 

A pre-defined color.

LightBlue 

A pre-defined color.

LightCoral 

A pre-defined color.

LightCyan 

A pre-defined color.

LightGoldenrodYellow 

A pre-defined color.

LightGray 

A pre-defined color.

LightGreen 

A pre-defined color.

LightPink 

A pre-defined color.

LightSalmon 

A pre-defined color.

LightSeaGreen 

A pre-defined color.

LightSkyBlue 

A pre-defined color.

LightSlateGray 

A pre-defined color.

LightSteelBlue 

A pre-defined color.

LightYellow 

A pre-defined color.

Lime 

A pre-defined color.

LimeGreen 

A pre-defined color.

Linen 

A pre-defined color.

Magenta 

A pre-defined color.

Maroon 

A pre-defined color.

MediumAquamarine 

A pre-defined color.

MediumBlue 

A pre-defined color.

MediumOrchid 

A pre-defined color.

MediumPurple 

A pre-defined color.

MediumSeaGreen 

A pre-defined color.

MediumSlateBlue 

A pre-defined color.

MediumSpringGreen 

A pre-defined color.

MediumTurquoise 

A pre-defined color.

MediumVioletRed 

A pre-defined color.

MidnightBlue 

A pre-defined color.

MintCream 

A pre-defined color.

MistyRose 

A pre-defined color.

Moccasin 

A pre-defined color.

NavajoWhite 

A pre-defined color.

Navy 

A pre-defined color.

OldLace 

A pre-defined color.

Olive 

A pre-defined color.

OliveDrab 

A pre-defined color.

Orange 

A pre-defined color.

OrangeRed 

A pre-defined color.

Orchid 

A pre-defined color.

PaleGoldenrod 

A pre-defined color.

PaleGreen 

A pre-defined color.

PaleTurquoise 

A pre-defined color.

PaleVioletRed 

A pre-defined color.

PapayaWhip 

A pre-defined color.

PeachPuff 

A pre-defined color.

Peru 

A pre-defined color.

Pink 

A pre-defined color.

Plum 

A pre-defined color.

PowderBlue 

A pre-defined color.

Purple 

A pre-defined color.

Red 

A pre-defined color.

RosyBrown 

A pre-defined color.

RoyalBlue 

A pre-defined color.

SaddleBrown 

A pre-defined color.

Salmon 

A pre-defined color.

SandyBrown 

A pre-defined color.

SeaGreen 

A pre-defined color.

SeaShell 

A pre-defined color.

Sienna 

A pre-defined color.

Silver 

A pre-defined color.

SkyBlue 

A pre-defined color.

SlateBlue 

A pre-defined color.

SlateGray 

A pre-defined color.

Snow 

A pre-defined color.

SpringGreen 

A pre-defined color.

SteelBlue 

A pre-defined color.

Tan 

A pre-defined color.

Teal 

A pre-defined color.

Thistle 

A pre-defined color.

Tomato 

A pre-defined color.

Transparent 

A pre-defined color.

Turquoise 

A pre-defined color.

Violet 

A pre-defined color.

Wheat 

A pre-defined color.

White 

A pre-defined color.

WhiteSmoke 

A pre-defined color.

Yellow 

A pre-defined color.

YellowGreen 

A pre-defined color.

◆ XLineAlignment

Specifies the alignment of a text string relative to its layout rectangle

Enumerator
Near 

Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right.

Center 

Specifies that text is aligned in the center of the layout rectangle.

Far 

Specifies that text is aligned far from the origin position of the layout rectangle. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left.

BaseLine 

Specifies that text is aligned relative to its base line. With this option the layout rectangle must have a height of 0.

◆ XLinearGradientMode

Specifies the direction of a linear gradient.

Enumerator
Horizontal 

Specifies a gradient from left to right.

Vertical 

Specifies a gradient from top to bottom.

ForwardDiagonal 

Specifies a gradient from upper left to lower right.

BackwardDiagonal 

Specifies a gradient from upper right to lower left.

◆ XLineCap

Specifies the available cap styles with which an XPen object can start and end a line.

Enumerator
Flat 

Specifies a flat line cap.

Round 

Specifies a round line cap.

Square 

Specifies a square line cap.

◆ XLineJoin

Specifies how to join consecutive line or curve segments in a figure or subpath.

Enumerator
Miter 

Specifies a mitered join. This produces a sharp corner or a clipped corner, depending on whether the length of the miter exceeds the miter limit

Round 

Specifies a circular join. This produces a smooth, circular arc between the lines.

Bevel 

Specifies a beveled join. This produces a diagonal corner.

◆ XMatrixOrder

Specifies the order for matrix transform operations.

Enumerator
Prepend 

The new operation is applied before the old operation.

Append 

The new operation is applied after the old operation.

◆ XPageDirection

Specifies the direction of the y-axis.

Enumerator
Downwards 

Increasing Y values go downwards. This is the default.

Upwards 

Increasing Y values go upwards. This is only possible when drawing on a PDF page. It is not implemented when drawing on a System.Drawing.Graphics object.

◆ XSmoothingMode

Specifies whether smoothing (or antialiasing) is applied to lines and curves and the edges of filled areas.

Enumerator
Invalid 

Specifies an invalid mode.

Default 

Specifies the default mode.

HighSpeed 

Specifies high speed, low quality rendering.

HighQuality 

Specifies high quality, low speed rendering.

None 

Specifies no antialiasing.

AntiAlias 

Specifies antialiased rendering.

◆ XStringAlignment

Specifies the alignment of a text string relative to its layout rectangle.

Enumerator
Near 

Specifies the text be aligned near the layout. In a left-to-right layout, the near position is left. In a right-to-left layout, the near position is right.

Center 

Specifies that text is aligned in the center of the layout rectangle.

Far 

Specifies that text is aligned far from the origin position of the layout rectangle. In a left-to-right layout, the far position is right. In a right-to-left layout, the far position is left.

◆ XStringFormatFlags

Not used in this implementation.

Enumerator
MeasureTrailingSpaces 

The default value.