Method | Description | |
---|---|---|
DrawEllipse ( |
||
DrawImage ( Image image, Point point ) : void | ||
DrawImage ( Image image, int x, int y ) : void | ||
DrawLine ( |
||
DrawLine ( |
||
DrawLines ( |
||
DrawPath ( |
||
DrawPolygon ( |
||
DrawRectangle ( |
||
DrawString ( string s, |
||
DrawString ( string s, |
||
DrawString ( string s, |
||
DrawString ( string s, |
||
FillEllipse ( |
||
FillEllipse ( |
||
FillPath ( |
||
FillPolygon ( |
||
FillRectangle ( |
||
PDFGraphics ( |
Initializes a new instnace of
|
|
ResetTransform ( ) : void | ||
RotateTransform ( float angle ) : void | ||
ScaleTransform ( float sx, float sy ) : void | ||
SetClip ( |
||
SetClip ( |
||
SetClip ( |
||
SetClip ( |
||
TakeInitialTransform ( ) : void |
Takes the inital state.
|
|
TranslateTransform ( float dx, float dy ) : void |
Method | Description | |
---|---|---|
ApplyClip ( |
Applies the clipping stored in region.
|
|
BrushToXBrush ( |
Converts a GDI-Brush to a PDF-XBrush. Only Solid- and LinearGradientBrushes are supported. |
|
CombineClippingRegion ( CombineMode combineMode, |
Combines the local clippingRegion with the given region.
|
|
DashStyleToXDashStyle ( DashStyle dashStyle ) : XDashStyle |
Converts a GDI-DashStyle to a PDF-XDashStyle.
|
|
FillModeToXFillMode ( FillMode fillMode ) : XFillMode |
Converts a GDI-FillMode to a PDF-XFillMode.
|
|
FloatArrayToDoubleArray ( float floats ) : double[] |
Converts an array of floats to an array of doubles.
|
|
FontStyleToXFontStyle ( FontStyle fontStyle ) : XFontStyle |
Converts a GDI-FontStyle to a PDF-XFontStyle.
|
|
FontToXFont ( |
Converts a GDI-Font to a PDF-XFont.
|
|
GraphicsPathToXGraphicsPath ( |
Converts a GDI-GraphicsPath to a PDF-XGraphicsPath.
|
|
ImageToXImage ( Image image ) : PdfSharp.Drawing.XImage |
Converts a GDI-Image to a PDF-XImage. The GDI-Image gets drawn on a white background. |
|
LineCapToXLineCap ( LineCap lineCap ) : XLineCap |
Converts a GDI-LineCap to a PDF-XLineCap. PDF only supports square, round and flat line caps. So all the other GDI line caps gets mapped to the best PDF line caps as follows. XLineCap.Square |
|
LineJoinToXLineJoin ( LineJoin lineJoin ) : XLineJoin |
Converts a GDI-LineJoin to a PDF-XLineJoin. PDF doesn't support LineJoin.MiterClipped so this is mapped to XLineJoin.Miter, too. |
|
PenToXPen ( |
Converts a GDI-Pen to a PDF-XPen.
|
|
RestoreInitialClip ( ) : void |
Resets the clipping.
|
|
RestoreInitialTransform ( ) : void |
Restores the state to the initial state.
|
|
SetText ( String text, float width, int maxLines, PdfSharp.Drawing.XFont xFont ) : List |
This method will take a text and do a word wrap so it fits into the given width. If a line is wider than width, a new line is started. If the resulting line count is greater than maxLines, an ellipsis is added. The result is a list of strings where one item per line.
|
|
StringAlignmentToXLineAlignment ( StringAlignment stringAlignment ) : XLineAlignment |
Converts a GDI-StringAlignment to a PDF-XLineAlignment.
|
|
StringAlignmentToXStringAlignment ( StringAlignment stringAlignment ) : XStringAlignment |
Converts a GDI-StringAlignment to a PDF-XStringAlignment.
|
|
StringFormatFlagsToXStringFormatFlags ( StringFormatFlags stringFormatFlags ) : XStringFormatFlags |
Converts a GDI-StringFormatFlags to a PDF-XStringFormatFlags.
|
|
StringFormatToXStringFormat ( |
Converts a GDI-StringFormat to a PDF-XStringFormat.
|
|
TokenizeString ( string text, string separator ) : List |
This method will devide string by a separator and return the tokens as a list. The list will contain the text between the separators as well as the separators itself.
|
|
TrimString ( string s, float width, PdfSharp.Drawing.XFont font, StringTrimming stringTrimming ) : string |
Trims a string so it fits into the rectangle. Only one line is trimed. The StringTrimming.EllipsisPath is handeled as StringTrimming.EllipsisCharacter. |
public DrawEllipse ( |
||
pen | ||
x | int | |
y | int | |
width | int | |
height | int | |
return | void |
public DrawImage ( Image image, Point point ) : void | ||
image | Image | |
point | Point | |
return | void |
public DrawImage ( Image image, int x, int y ) : void | ||
image | Image | |
x | int | |
y | int | |
return | void |
public DrawLine ( |
||
pen | ||
pt1 | Point | |
pt2 | Point | |
return | void |
public DrawLine ( |
||
pen | ||
x1 | int | |
y1 | int | |
x2 | int | |
y2 | int | |
return | void |
public DrawLines ( |
||
pen | ||
points | Point | |
return | void |
public DrawPath ( |
||
pen | ||
path | ||
return | void |
public DrawPolygon ( |
||
pen | ||
points | Point | |
return | void |
public DrawRectangle ( |
||
pen | ||
rect | ||
return | void |
public DrawString ( string s, |
||
s | string | |
font | ||
brush | ||
point | ||
return | void |
public DrawString ( string s, |
||
s | string | |
font | ||
brush | ||
point | ||
format | ||
return | void |
public DrawString ( string s, |
||
s | string | |
font | ||
brush | ||
layoutRectangle | ||
return | void |
public DrawString ( string s, |
||
s | string | |
font | ||
brush | ||
layoutRectangle | ||
format | ||
return | void |
public FillEllipse ( |
||
brush | ||
rect | ||
return | void |
public FillEllipse ( |
||
brush | ||
x | int | |
y | int | |
width | int | |
height | int | |
return | void |
public FillPath ( |
||
brush | ||
path | ||
return | void |
public FillPolygon ( |
||
brush | ||
points | Point | |
return | void |
public FillRectangle ( |
||
brush | ||
rect | ||
return | void |
public PDFGraphics ( |
||
graphics | An instance of |
|
return | System |
public RotateTransform ( float angle ) : void | ||
angle | float | |
return | void |
public ScaleTransform ( float sx, float sy ) : void | ||
sx | float | |
sy | float | |
return | void |
public SetClip ( |
||
path | ||
combineMode | CombineMode | |
return | void |
public SetClip ( |
||
rect | ||
combineMode | CombineMode | |
return | void |
public SetClip ( |
||
rect | ||
combineMode | CombineMode | |
return | void |
public SetClip ( |
||
region | ||
combineMode | CombineMode | |
return | void |
public TranslateTransform ( float dx, float dy ) : void | ||
dx | float | |
dy | float | |
return | void |