Class DXFGraphicsRenderer
Inheritance
System.Object
DXFGraphicsRenderer
Implements
FastReport.IGraphics
Assembly: FastReport.dll
Syntax
public class DXFGraphicsRenderer : IGraphics, IDisposable
Constructors
DXFGraphicsRenderer(DxfDocument, DxfFillMode, Single)
Declaration
public DXFGraphicsRenderer(DxfDocument dxfDocument, DxfFillMode fillMode, float barcodesGap)
Parameters
Methods
Dispose()
Declaration
DrawEllipse(Pen, Single, Single, Single, Single)
Declaration
public void DrawEllipse(Pen pen, float left, float top, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
width |
|
| System.Single |
height |
|
DrawLine(Pen, Single, Single, Single, Single)
Declaration
public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Single |
x1 |
|
| System.Single |
y1 |
|
| System.Single |
x2 |
|
| System.Single |
y2 |
|
DrawString(String, Font, Brush, RectangleF)
Declaration
public void DrawString(string text, Font drawFont, Brush brush, RectangleF rectangleF)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
drawFont |
|
| System.Drawing.Brush |
brush |
|
| System.Drawing.RectangleF |
rectangleF |
|
DrawString(String, Font, Brush, Single, Single)
Declaration
public void DrawString(string text, Font drawFont, Brush brush, float left, float top)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
drawFont |
|
| System.Drawing.Brush |
brush |
|
| System.Single |
left |
|
| System.Single |
top |
|
DrawString(String, Font, Brush, Single, Single, Single)
Declaration
public void DrawString(string text, Font drawFont, Brush brush, float left, float top, float baseLine)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
drawFont |
|
| System.Drawing.Brush |
brush |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
baseLine |
|
FillPath(Brush, GraphicsPath)
Declaration
public void FillPath(Brush brush, GraphicsPath path)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Drawing.Drawing2D.GraphicsPath |
path |
|
FillPolygon(Brush, PointF[])
Declaration
public void FillPolygon(Brush brush, PointF[] points)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Drawing.PointF[] |
points |
|
FillRectangle(Brush, Single, Single, Single, Single)
Declaration
public void FillRectangle(Brush brush, float left, float top, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
width |
|
| System.Single |
height |
|
MeasureString(String, Font)
Declaration
public SizeF MeasureString(string text, Font drawFont)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
drawFont |
|
Returns
| Type |
Description |
| System.Drawing.SizeF |
|
Restore(IGraphicsState)
Declaration
public void Restore(IGraphicsState state)
Parameters
| Type |
Name |
Description |
| FastReport.IGraphicsState |
state |
|
Declaration
public void RotateTransform(float angle)
Parameters
| Type |
Name |
Description |
| System.Single |
angle |
|
RotateVector(PointF[], Double, PointF)
Declaration
public static PointF[] RotateVector(PointF[] vector, double angle, PointF center)
Parameters
| Type |
Name |
Description |
| System.Drawing.PointF[] |
vector |
|
| System.Double |
angle |
|
| System.Drawing.PointF |
center |
|
Returns
| Type |
Description |
| System.Drawing.PointF[] |
|
Save()
Declaration
public IGraphicsState Save()
Returns
| Type |
Description |
| FastReport.IGraphicsState |
|
Scale(Single, Single)
Declaration
public void Scale(float scaleX, float scaleY)
Parameters
| Type |
Name |
Description |
| System.Single |
scaleX |
|
| System.Single |
scaleY |
|
Declaration
public void TranslateTransform(float left, float top)
Parameters
| Type |
Name |
Description |
| System.Single |
left |
|
| System.Single |
top |
|
Explicit Interface Implementations
IGraphics.Clip
Declaration
Region IGraphics.Clip { get; set; }
Returns
| Type |
Description |
| System.Drawing.Region |
|
IGraphics.CompositingQuality
Declaration
CompositingQuality IGraphics.CompositingQuality { get; set; }
Returns
| Type |
Description |
| System.Drawing.Drawing2D.CompositingQuality |
|
IGraphics.DpiX
Declaration
float IGraphics.DpiX { get; }
Returns
| Type |
Description |
| System.Single |
|
IGraphics.DpiY
Declaration
float IGraphics.DpiY { get; }
Returns
| Type |
Description |
| System.Single |
|
IGraphics.DrawArc(Pen, Single, Single, Single, Single, Single, Single)
Declaration
void IGraphics.DrawArc(Pen pen, float x, float y, float dx, float dy, float v1, float v2)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
dx |
|
| System.Single |
dy |
|
| System.Single |
v1 |
|
| System.Single |
v2 |
|
IGraphics.DrawCurve(Pen, PointF[], Int32, Int32, Single)
Declaration
void IGraphics.DrawCurve(Pen pen, PointF[] points, int offset, int numberOfSegments, float tension)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.PointF[] |
points |
|
| System.Int32 |
offset |
|
| System.Int32 |
numberOfSegments |
|
| System.Single |
tension |
|
IGraphics.DrawEllipse(Pen, RectangleF)
Declaration
void IGraphics.DrawEllipse(Pen pen, RectangleF pointerCircle)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.RectangleF |
pointerCircle |
|
IGraphics.DrawImage(Image, PointF[])
Declaration
void IGraphics.DrawImage(Image image, PointF[] points)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Drawing.PointF[] |
points |
|
IGraphics.DrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes)
Declaration
void IGraphics.DrawImage(Image image, Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Drawing.Rectangle |
destRect |
|
| System.Int32 |
srcX |
|
| System.Int32 |
srcY |
|
| System.Int32 |
srcWidth |
|
| System.Int32 |
srcHeight |
|
| System.Drawing.GraphicsUnit |
srcUnit |
|
| System.Drawing.Imaging.ImageAttributes |
imageAttr |
|
IGraphics.DrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes)
Declaration
void IGraphics.DrawImage(Image image, Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Drawing.Rectangle |
destRect |
|
| System.Single |
srcX |
|
| System.Single |
srcY |
|
| System.Single |
srcWidth |
|
| System.Single |
srcHeight |
|
| System.Drawing.GraphicsUnit |
srcUnit |
|
| System.Drawing.Imaging.ImageAttributes |
imageAttrs |
|
IGraphics.DrawImage(Image, RectangleF)
Declaration
void IGraphics.DrawImage(Image image, RectangleF rect)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Drawing.RectangleF |
rect |
|
IGraphics.DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)
Declaration
void IGraphics.DrawImage(Image image, RectangleF rect1, RectangleF rect2, GraphicsUnit unit)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Drawing.RectangleF |
rect1 |
|
| System.Drawing.RectangleF |
rect2 |
|
| System.Drawing.GraphicsUnit |
unit |
|
IGraphics.DrawImage(Image, Single, Single)
Declaration
void IGraphics.DrawImage(Image image, float x, float y)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Single |
x |
|
| System.Single |
y |
|
IGraphics.DrawImage(Image, Single, Single, Single, Single)
Declaration
void IGraphics.DrawImage(Image image, float x, float y, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
width |
|
| System.Single |
height |
|
IGraphics.DrawImageUnscaled(Image, Rectangle)
Declaration
void IGraphics.DrawImageUnscaled(Image image, Rectangle rect)
Parameters
| Type |
Name |
Description |
| System.Drawing.Image |
image |
|
| System.Drawing.Rectangle |
rect |
|
IGraphics.DrawLine(Pen, PointF, PointF)
Declaration
void IGraphics.DrawLine(Pen pen, PointF p1, PointF p2)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.PointF |
p1 |
|
| System.Drawing.PointF |
p2 |
|
IGraphics.DrawLines(Pen, PointF[])
Declaration
void IGraphics.DrawLines(Pen pen, PointF[] pointFs)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.PointF[] |
pointFs |
|
IGraphics.DrawPath(Pen, GraphicsPath)
Declaration
void IGraphics.DrawPath(Pen outlinePen, GraphicsPath path)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
outlinePen |
|
| System.Drawing.Drawing2D.GraphicsPath |
path |
|
IGraphics.DrawPie(Pen, Single, Single, Single, Single, Single, Single)
Declaration
void IGraphics.DrawPie(Pen pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
width |
|
| System.Single |
height |
|
| System.Single |
startAngle |
|
| System.Single |
sweepAngle |
|
IGraphics.DrawPolygon(Pen, Point[])
Declaration
void IGraphics.DrawPolygon(Pen pen, Point[] points)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Point[] |
points |
|
IGraphics.DrawPolygon(Pen, PointF[])
Declaration
void IGraphics.DrawPolygon(Pen pen, PointF[] diaPoints)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.PointF[] |
diaPoints |
|
IGraphics.DrawRectangle(Pen, Rectangle)
Declaration
void IGraphics.DrawRectangle(Pen green, Rectangle rectangle)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
green |
|
| System.Drawing.Rectangle |
rectangle |
|
IGraphics.DrawRectangle(Pen, Single, Single, Single, Single)
Declaration
void IGraphics.DrawRectangle(Pen borderPen, float left, float top, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
borderPen |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
width |
|
| System.Single |
height |
|
Declaration
void IGraphics.DrawString(string s, Font font, Brush brush, PointF point, StringFormat format)
Parameters
| Type |
Name |
Description |
| System.String |
s |
|
| System.Drawing.Font |
font |
|
| System.Drawing.Brush |
brush |
|
| System.Drawing.PointF |
point |
|
| System.Drawing.StringFormat |
format |
|
Declaration
void IGraphics.DrawString(string text, Font font, Brush textBrush, RectangleF textRect, StringFormat format)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Drawing.Brush |
textBrush |
|
| System.Drawing.RectangleF |
textRect |
|
| System.Drawing.StringFormat |
format |
|
Declaration
void IGraphics.DrawString(string text, Font font, Brush brush, float left, float top, StringFormat format)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Drawing.Brush |
brush |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Drawing.StringFormat |
format |
|
IGraphics.FillAndDrawEllipse(Pen, Brush, RectangleF)
Declaration
void IGraphics.FillAndDrawEllipse(Pen pen, Brush brush, RectangleF rect)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Brush |
brush |
|
| System.Drawing.RectangleF |
rect |
|
IGraphics.FillAndDrawEllipse(Pen, Brush, Single, Single, Single, Single)
Declaration
void IGraphics.FillAndDrawEllipse(Pen pen, Brush brush, float left, float top, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Brush |
brush |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
width |
|
| System.Single |
height |
|
IGraphics.FillAndDrawPath(Pen, Brush, GraphicsPath)
Declaration
void IGraphics.FillAndDrawPath(Pen pen, Brush brush, GraphicsPath path)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Brush |
brush |
|
| System.Drawing.Drawing2D.GraphicsPath |
path |
|
IGraphics.FillAndDrawPolygon(Pen, Brush, Point[])
Declaration
void IGraphics.FillAndDrawPolygon(Pen pen, Brush brush, Point[] points)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Brush |
brush |
|
| System.Drawing.Point[] |
points |
|
IGraphics.FillAndDrawPolygon(Pen, Brush, PointF[])
Declaration
void IGraphics.FillAndDrawPolygon(Pen pen, Brush brush, PointF[] points)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Brush |
brush |
|
| System.Drawing.PointF[] |
points |
|
IGraphics.FillAndDrawRectangle(Pen, Brush, Single, Single, Single, Single)
Declaration
void IGraphics.FillAndDrawRectangle(Pen pen, Brush brush, float left, float top, float width, float height)
Parameters
| Type |
Name |
Description |
| System.Drawing.Pen |
pen |
|
| System.Drawing.Brush |
brush |
|
| System.Single |
left |
|
| System.Single |
top |
|
| System.Single |
width |
|
| System.Single |
height |
|
IGraphics.FillEllipse(Brush, RectangleF)
Declaration
void IGraphics.FillEllipse(Brush brush, RectangleF pointerCircle)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Drawing.RectangleF |
pointerCircle |
|
IGraphics.FillEllipse(Brush, Single, Single, Single, Single)
Declaration
void IGraphics.FillEllipse(Brush brush, float x, float y, float dx, float dy)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
dx |
|
| System.Single |
dy |
|
IGraphics.FillPie(Brush, Single, Single, Single, Single, Single, Single)
Declaration
void IGraphics.FillPie(Brush brush, float x, float y, float dx, float dy, float v1, float v2)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Single |
x |
|
| System.Single |
y |
|
| System.Single |
dx |
|
| System.Single |
dy |
|
| System.Single |
v1 |
|
| System.Single |
v2 |
|
IGraphics.FillPolygon(Brush, Point[])
Declaration
void IGraphics.FillPolygon(Brush brush, Point[] points)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Drawing.Point[] |
points |
|
IGraphics.FillRectangle(Brush, RectangleF)
Declaration
void IGraphics.FillRectangle(Brush brush, RectangleF drawRect)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Drawing.RectangleF |
drawRect |
|
IGraphics.FillRegion(Brush, Region)
Declaration
void IGraphics.FillRegion(Brush brush, Region region)
Parameters
| Type |
Name |
Description |
| System.Drawing.Brush |
brush |
|
| System.Drawing.Region |
region |
|
IGraphics.Graphics
Declaration
Graphics IGraphics.Graphics { get; }
Returns
| Type |
Description |
| System.Drawing.Graphics |
|
IGraphics.InterpolationMode
Declaration
InterpolationMode IGraphics.InterpolationMode { get; set; }
Returns
| Type |
Description |
| System.Drawing.Drawing2D.InterpolationMode |
|
IGraphics.IsClipEmpty
Declaration
bool IGraphics.IsClipEmpty { get; }
Returns
| Type |
Description |
| System.Boolean |
|
IGraphics.IsVisible(RectangleF)
Declaration
bool IGraphics.IsVisible(RectangleF objRect)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
objRect |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
Region[] IGraphics.MeasureCharacterRanges(string text, Font font, RectangleF textRect, StringFormat format)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Drawing.RectangleF |
textRect |
|
| System.Drawing.StringFormat |
format |
|
Returns
| Type |
Description |
| System.Drawing.Region[] |
|
IGraphics.MeasureString(String, Font, SizeF)
Declaration
SizeF IGraphics.MeasureString(string text, Font font, SizeF size)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Drawing.SizeF |
size |
|
Returns
| Type |
Description |
| System.Drawing.SizeF |
|
Declaration
SizeF IGraphics.MeasureString(string text, Font font, SizeF layoutArea, StringFormat stringFormat)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Drawing.SizeF |
layoutArea |
|
| System.Drawing.StringFormat |
stringFormat |
|
Returns
| Type |
Description |
| System.Drawing.SizeF |
|
Declaration
void IGraphics.MeasureString(string text, Font font, SizeF size, StringFormat format, out int charsFit, out int linesFit)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Drawing.SizeF |
size |
|
| System.Drawing.StringFormat |
format |
|
| System.Int32 |
charsFit |
|
| System.Int32 |
linesFit |
|
Declaration
SizeF IGraphics.MeasureString(string text, Font font, int v, StringFormat format)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| System.Drawing.Font |
font |
|
| System.Int32 |
v |
|
| System.Drawing.StringFormat |
format |
|
Returns
| Type |
Description |
| System.Drawing.SizeF |
|
Declaration
void IGraphics.MultiplyTransform(Matrix matrix, MatrixOrder prepend)
Parameters
| Type |
Name |
Description |
| System.Drawing.Drawing2D.Matrix |
matrix |
|
| System.Drawing.Drawing2D.MatrixOrder |
prepend |
|
IGraphics.PageUnit
Declaration
GraphicsUnit IGraphics.PageUnit { get; set; }
Returns
| Type |
Description |
| System.Drawing.GraphicsUnit |
|
IGraphics.ResetClip()
Declaration
void IGraphics.ResetClip()
Declaration
void IGraphics.ScaleTransform(float scaleX, float scaleY)
Parameters
| Type |
Name |
Description |
| System.Single |
scaleX |
|
| System.Single |
scaleY |
|
IGraphics.SetClip(GraphicsPath, CombineMode)
Declaration
void IGraphics.SetClip(GraphicsPath path, CombineMode combineMode)
Parameters
| Type |
Name |
Description |
| System.Drawing.Drawing2D.GraphicsPath |
path |
|
| System.Drawing.Drawing2D.CombineMode |
combineMode |
|
IGraphics.SetClip(RectangleF)
Declaration
void IGraphics.SetClip(RectangleF textRect)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
textRect |
|
IGraphics.SetClip(RectangleF, CombineMode)
Declaration
void IGraphics.SetClip(RectangleF displayRect, CombineMode intersect)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
displayRect |
|
| System.Drawing.Drawing2D.CombineMode |
intersect |
|
IGraphics.SmoothingMode
Declaration
SmoothingMode IGraphics.SmoothingMode { get; set; }
Returns
| Type |
Description |
| System.Drawing.Drawing2D.SmoothingMode |
|
IGraphics.TextRenderingHint
Declaration
TextRenderingHint IGraphics.TextRenderingHint { get; set; }
Returns
| Type |
Description |
| System.Drawing.Text.TextRenderingHint |
|
Declaration
Matrix IGraphics.Transform { get; set; }
Returns
| Type |
Description |
| System.Drawing.Drawing2D.Matrix |
|
Implements
FastReport.IGraphics