C# Class PurplePen.GraphicsRenderer

Inheritance: IRenderer
Afficher le fichier Open project: petergolde/PurplePen Class Usage Examples

Méthodes publiques

Méthode Description
CreateFont ( string fontName, float emHeight, bool bold, bool italic, StringAlignment alignment ) : object
CreatePen ( float thickness, LineJoin lineJoin, LineCap lineCap ) : object
DrawLine ( object pen, float x1, float y1, float x2, float y2 ) : void
DrawSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
DrawSymbol ( Symbol sym, RectangleF rect ) : void
DrawWrappedText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
GraphicsRenderer ( Graphics graphics ) : System
MeasureSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : float
WrappedTextFits ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : bool

Method Details

CreateFont() public méthode

public CreateFont ( string fontName, float emHeight, bool bold, bool italic, StringAlignment alignment ) : object
fontName string
emHeight float
bold bool
italic bool
alignment StringAlignment
Résultat object

CreatePen() public méthode

public CreatePen ( float thickness, LineJoin lineJoin, LineCap lineCap ) : object
thickness float
lineJoin LineJoin
lineCap LineCap
Résultat object

DrawLine() public méthode

public DrawLine ( object pen, float x1, float y1, float x2, float y2 ) : void
pen object
x1 float
y1 float
x2 float
y2 float
Résultat void

DrawSingleLineText() public méthode

public DrawSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
Résultat void

DrawSymbol() public méthode

public DrawSymbol ( Symbol sym, RectangleF rect ) : void
sym Symbol
rect System.Drawing.RectangleF
Résultat void

DrawWrappedText() public méthode

public DrawWrappedText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : void
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
Résultat void

GraphicsRenderer() public méthode

public GraphicsRenderer ( Graphics graphics ) : System
graphics System.Drawing.Graphics
Résultat System

MeasureSingleLineText() public méthode

public MeasureSingleLineText ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : float
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
Résultat float

WrappedTextFits() public méthode

public WrappedTextFits ( object font, string text, RectangleF rect, StringAlignment horizAlignment ) : bool
font object
text string
rect System.Drawing.RectangleF
horizAlignment StringAlignment
Résultat bool