Interface IGraphicsRenderer
The interface for unifying methods for drawing objects into different graphics
Inherited Members
System.IDisposable.Dispose()
Assembly: FastReport.OpenSource.dll
Syntax
public interface IGraphicsRenderer : IDisposable
Methods
DrawEllipse(Pen, Single, Single, Single, Single)
Declaration
void DrawEllipse(Pen pen, float left, float top, float width, float height)
Parameters
Type |
Name |
Description |
Pen |
pen |
|
System.Single |
left |
|
System.Single |
top |
|
System.Single |
width |
|
System.Single |
height |
|
DrawLine(Pen, Single, Single, Single, Single)
Declaration
void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
Parameters
Type |
Name |
Description |
Pen |
pen |
|
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
DrawString(String, Font, Brush, RectangleF)
Declaration
void DrawString(string text, Font drawFont, Brush brush, RectangleF rectangleF)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Font |
drawFont |
|
Brush |
brush |
|
RectangleF |
rectangleF |
|
DrawString(String, Font, Brush, Single, Single)
Declaration
void DrawString(string text, Font drawFont, Brush brush, float left, float top)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Font |
drawFont |
|
Brush |
brush |
|
System.Single |
left |
|
System.Single |
top |
|
DrawString(String, Font, Brush, Single, Single, Single)
in this case if a baseline is needed, it will not be calculated
Declaration
void DrawString(string text, Font drawFont, Brush brush, float left, float top, float baseLine)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Font |
drawFont |
|
Brush |
brush |
|
System.Single |
left |
|
System.Single |
top |
|
System.Single |
baseLine |
|
FillPath(Brush, GraphicsPath)
Declaration
void FillPath(Brush brush, GraphicsPath path)
Parameters
Type |
Name |
Description |
Brush |
brush |
|
GraphicsPath |
path |
|
FillPolygon(Brush, PointF[])
Declaration
void FillPolygon(Brush brush, PointF[] points)
Parameters
Type |
Name |
Description |
Brush |
brush |
|
PointF[] |
points |
|
FillRectangle(Brush, Single, Single, Single, Single)
Declaration
void FillRectangle(Brush brush, float left, float top, float width, float height)
Parameters
Type |
Name |
Description |
Brush |
brush |
|
System.Single |
left |
|
System.Single |
top |
|
System.Single |
width |
|
System.Single |
height |
|
MeasureString(String, Font)
Declaration
SizeF MeasureString(string text, Font drawFont)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Font |
drawFont |
|
Returns
PathAddRectangle(GraphicsPath, RectangleF)
Add rectangle to the graphics path
Declaration
void PathAddRectangle(GraphicsPath path, RectangleF rect)
Parameters
Type |
Name |
Description |
GraphicsPath |
path |
|
RectangleF |
rect |
|
Restore(IGraphicsRendererState)
Declaration
void Restore(IGraphicsRendererState state)
Parameters
Declaration
void RotateTransform(float angle)
Parameters
Type |
Name |
Description |
System.Single |
angle |
|
Save()
Declaration
IGraphicsRendererState Save()
Returns
Declaration
void TranslateTransform(float left, float top)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|