DesignForms
TGraphics Class Reference

Object used for drawing dynamic graphics More...

Inherits IVisualComponent, and IInternalGraphics.

Public Member Functions

TStructure GetZoom (double Width, double Height, bool KeepAspectRatio)
 Calculate ZoomX and ZoomY for current graphics More...
 
IVisualComponent Draw (double Zoom)
 Draw graphics object to calculation output with given zoom factor More...
 
IVisualComponent Draw (double ZoomX, double ZoomY, double Angle)
 Draw graphics object to calculation output with given zoom factors and rotation More...
 
IVisualComponent Draw (double Width, double Height)
 Draw graphics object to calculation output. Best fit the object to rectangle with given width and height. Keep aspect ratio. More...
 
IVisualComponent Draw (double Width, double Height, bool KeepAspectRatio)
 Draw graphics object to calculation output. Best fit the object to rectangle with given width and height. More...
 
void Clear ()
 Clear all operations. More...
 
void DrawLine (double X1, double Y1, double X2, double Y2)
 Draw a line with given coordinates and default pen. More...
 
void DrawLine (double X1, double Y1, double X2, double Y2, Pen P)
 Draw a line with given coordinates and pen. More...
 
void DrawLine (object Pt1, object Pt2)
 Draws a line connecting two points. More...
 
void DrawLine (object Pt1, object Pt2, Pen P)
 Draws a line connecting two points. More...
 
void DrawLine (string ColorName, double Width, double X1, double Y1, double X2, double Y2)
 Obsolete function. Do not use! More...
 
void DrawLines (IList Points)
 Draws a open polyline defined by an array of Points. More...
 
void DrawLines (IList Points, Pen P)
 Draws a open polyline defined by an array of Points. More...
 
void DrawPolygon (IList Points)
 Draws a closed polygon defined by an array of Points. More...
 
void DrawPolygon (IList Points, Pen P)
 Draws a closed polygon defined by an array of Points. More...
 
void DrawPolyLine (IList Points)
 Draws a closed polygon defined by an array of Points. More...
 
void DrawPolyLine (IList Points, Pen P)
 Draws a closed polygon defined by an array of Points. More...
 
void DrawPolyLine (string ColorName, double Width, IList Points)
 Obsolete function. Do not use! More...
 
void DrawRectangle (double X, double Y, double Width, double Height)
 Draws a rectangle specified by a coordinate pair, a width, and a height. More...
 
void DrawRectangle (double X, double Y, double Width, double Height, Pen P)
 Draws a rectangle specified by a coordinate pair, a width, and a height. More...
 
void DrawCircle (double X, double Y, double D)
 Draw a circle with given center and diameter. More...
 
void DrawCircle (double X, double Y, double D, Pen P)
 Draw a circle with given center, diameter and pen. More...
 
void DrawCircle (string ColorName, double Width, double X, double Y, double R)
 Obsolete function. Do not use! More...
 
void DrawEllipse (double X, double Y, double A, double B)
 Draw a ellipse with given center and dimensions. More...
 
void DrawEllipse (double X, double Y, double A, double B, Pen P)
 Draw a ellipse with given center, dimensions and pen. More...
 
void DrawArc (double X, double Y, double Width, double Height, double StartAngle, double Angle)
 Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. More...
 
void DrawArc (double X, double Y, double Width, double Height, double StartAngle, double Angle, Pen P)
 Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. More...
 
void DrawText (string TXT, Font F, double X, double Y)
 Draws the specified text string at the specified location with the specified Font. More...
 
void DrawText (string TXT, Font F, double X, double Y, ContentAlignment Alignment)
 Draws the specified text string at the specified location with the specified Font. More...
 
void DrawText (string TXT, Font F, double X, double Y, ContentAlignment Alignment, double Angle)
 Draws the specified text string at the specified location with the specified Font. More...
 
void DrawText (string TXT, Font F, double X, double Y, ContentAlignment Alignment, double Angle, Color Color)
 Draws the specified text string at the specified location with the specified Font. More...
 
void DrawText (string TXT, Font F, double X, double Y, ContentAlignment Alignment, Color Color)
 Draws the specified text string at the specified location with the specified Font. More...
 
void DrawText (string ColorName, string TXT, Font F, double X, double Y)
 Obsolete function. Do not use! More...
 
void DrawGraphics (TGraphics Graphics, double X, double Y)
 Draw a external graphics object at specified location. More...
 
void DrawGraphics (TGraphics Graphics, double X, double Y, double Angle)
 Draw a external graphics object at specified location. More...
 
void DrawGraphics (TGraphics Graphics, double X, double Y, double ZoomX, double ZoomY, double Angle)
 Draw a external graphics object at specified location. More...
 
void FillPolygon (IList Points, Color Color)
 Fills the given polygon with solid brush. More...
 
void FillPolygon (IList Points, Brush B)
 Fills the polygon with given brush. More...
 
void FillCircle (double X, double Y, double D, Color C)
 Fill a circle with given center and diameter using solid brush of given color. More...
 
void FillCircle (double X, double Y, double D, Brush Brush)
 Fill a circle with given center and diameter using given brush More...
 
void FillEllipse (double X, double Y, double A, double B, Color C)
 Fill a ellipse with given center and dimensions with solid brush of given color. More...
 
void FillEllipse (double X, double Y, double A, double B, Brush Brush)
 Fill a ellipse with given center and dimensions with given brush. More...
 
void DrawDim (object Start, object End)
 Draws aligned dimension defined by start and end point. More...
 
void DrawDim (object Start, object End, string UserText)
 Draws aligned dimension defined by start and end point. More...
 
void DrawDim (object Start, object End, double Offset)
 Draws aligned dimension defined by start and end point. Overrides default dimension offset. More...
 
void DrawDim (object Start, object End, string UserText, double Offset)
 Draws aligned dimension defined by start and end point. Overrides default dimension offset. More...
 
void DrawDim (object Start, object End, TDimStyle DimStyle)
 Draws aligned dimension defined by start and end point. Used given dimension style. More...
 
void DrawDim (object Start, object End, string UserText, TDimStyle DimStyle)
 Draws aligned dimension defined by start and end point. Used given dimension style. More...
 
void DrawDimX (object Start, object End)
 Draws horizontal dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawDimX (object Start, object End, string UserText)
 Draws horizontal dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawDimX (object Start, object End, double Offset)
 Draws horizontal dimension defined by start and end point. Overrides default dimension offset. More...
 
void DrawDimX (object Start, object End, string UserText, double Offset)
 Draws horizontal dimension defined by start and end point. Overrides default dimension offset. More...
 
void DrawDimX (object Start, object End, TDimStyle DimStyle)
 Draws horizontal dimension defined by start and end point. Use given dimension style. More...
 
void DrawDimX (object Start, object End, string UserText, TDimStyle DimStyle)
 Draws horizontal dimension defined by start and end point. Use given dimension style. More...
 
void DrawDimY (object Start, object End)
 Draws vertical dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawDimY (object Start, object End, string UserText)
 Draws vertical dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawDimY (object Start, object End, double Offset)
 Draws vertical dimension defined by start and end point. Overrides default dimension offset. More...
 
void DrawDimY (object Start, object End, string UserText, double Offset)
 Draws vertical dimension defined by start and end point. Overrides default dimension offset. More...
 
void DrawDimY (object Start, object End, TDimStyle DimStyle)
 Draws vertical dimension defined by start and end point. Use given dimension style. More...
 
void DrawDimY (object Start, object End, string UserText, TDimStyle DimStyle)
 Draws vertical dimension defined by start and end point. Use given dimension style. More...
 
void DrawRadiusDim (object Start, object End)
 Draws radius dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawRadiusDim (object Start, object End, string UserText)
 Draws radius dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawRadiusDim (object Start, object End, TDimStyle DimStyle)
 Draws radius dimension defined by start and end point. Use given dimension style. More...
 
void DrawRadiusDim (object Start, object End, string UserText, TDimStyle DimStyle)
 Draws radius dimension defined by start and end point. Use given dimension style. More...
 
void DrawDiameterDim (object Start, object End)
 Draws diameter dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawDiameterDim (object Start, object End, string UserText)
 Draws diameter dimension defined by start and end point. Use Graphics.DefaultDimStyle. More...
 
void DrawDiameterDim (object Start, object End, TDimStyle DimStyle)
 Draws diameter dimension defined by start and end point. Use given dimension style. More...
 
void DrawDiameterDim (object Start, object End, string UserText, TDimStyle DimStyle)
 Draws diameter dimension defined by start and end point. Use given dimension style. More...
 
void DrawAngleDim (object Center, object P1, object P2)
 Draw angle dimension defined by center point and two points on the angle lines. Use Graphics.DefaultDimStyle. More...
 
void DrawAngleDim (object Center, object P1, object P2, string UserText)
 Draw angle dimension defined by center point and two points on the angle lines. Use Graphics.DefaultDimStyle. More...
 
void DrawAngleDim (object Center, object P1, object P2, TDimStyle DimStyle)
 Draw angle dimension defined by center point and two points on the angle lines. Use given dimension style. More...
 
void DrawAngleDim (object Center, object P1, object P2, string UserText, TDimStyle DimStyle)
 Draw angle dimension defined by center point and two points on the angle lines. Use given dimension style. More...
 
void DrawAngleDim (object P1, object P2, object P3, object P4)
 Draw angle dimension defined by 2+2 points. Use Graphics.DefaultDimStyle. More...
 
void DrawAngleDim (object P1, object P2, object P3, object P4, string UserText)
 Draw angle dimension defined by 2+2 points. Use Graphics.DefaultDimStyle. More...
 
void DrawAngleDim (object P1, object P2, object P3, object P4, TDimStyle DimStyle)
 Draw angle dimension defined by 2+2 points. Use given dimension style. More...
 
void DrawAngleDim (object P1, object P2, object P3, object P4, string UserText, TDimStyle DimStyle)
 Draw angle dimension defined by 2+2 points. Use given dimension style. More...
 
void DrawChainDimX (IList Points)
 Draw a horizontal chain dimension over given set of points. Use Graphics.DefaultDimStyle More...
 
void DrawChainDimX (IList Points, string UserText)
 Draw a horizontal chain dimension over given set of points. Use Graphics.DefaultDimStyle More...
 
void DrawChainDimX (IList Points, TDimStyle DimStyle)
 Draw a horizontal chain dimension over given set of points. Use given dimension style. More...
 
void DrawChainDimX (IList Points, string UserText, TDimStyle DimStyle)
 Draw a horizontal chain dimension over given set of points. Use given dimension style. More...
 
void DrawChainDimY (IList Points)
 Draw a vertical chain dimension over given set of points. Use Graphics.DefaultDimStyle More...
 
void DrawChainDimY (IList Points, string UserText)
 Draw a vertical chain dimension over given set of points. Use Graphics.DefaultDimStyle More...
 
void DrawChainDimY (IList Points, TDimStyle DimStyle)
 Draw a vertical chain dimension over given set of points. Use given dimension style. More...
 
void DrawChainDimY (IList Points, string UserText, TDimStyle DimStyle)
 Draw a vertical chain dimension over given set of points. Use given dimension style. More...
 
void DrawLeader (object Start, object End, string Text)
 Draws a leader with specified text. Text is automatically oriented according to leader line. More...
 
void DrawLeader (object Start, object End, string Text, ContentAlignment Alignment)
 Draws a leader with specified text. Text can me aligned as necessary. More...
 
void DrawLeader (object Start, object End, string Text, ContentAlignment Alignment, TDimStyle DimStyle)
 Draws a leader with specified text, alignment and style. More...
 
void DrawArrow (double X0, double Y0, double X1, double Y1)
 Draw arrow from the start to end point with default shape and size. More...
 
void DrawArrow (double X0, double Y0, double X1, double Y1, eArrowShape ArrowShape, double ArrowSize)
 Draw arrow from the start to end point with specified shape and size. More...
 
void DrawArrow (double X0, double Y0, double X1, double Y1, eArrowShape ArrowShape, double ArrowSize, Pen P)
 Draw arrow from the start to end point with specified shape, size and pen. More...
 
void DrawArrow (object Start, object End)
 Draw arrow from the start to end point. More...
 
void DrawArrow (object Start, object End, eArrowShape ArrowShape, double ArrowSize)
 Draw arrow from the start to end point with specified shape and size. More...
 
void DrawArrow (object Start, object End, eArrowShape ArrowShape, double ArrowSize, Pen P)
 Draw arrow from the start to end point with specified shape and size. More...
 
void DrawImage (string ImageName, double X, double Y)
 Draw image from the calculation library at the specified position. More...
 
void DrawImage (string ImageName, double X, double Y, double Width, double Height)
 Draw image from the calculation library at the specified position with the specified size. More...
 
void SetClip (double X1, double Y1, double X2, double Y2)
 Sets the clipping region for the graphics. Entity (or its part) outside this region will not be drawn. More...
 
void SetClip (object Point1, object Point2)
 Sets the clipping region for the graphics. Entity (or its part) outside this region will not be drawn. More...
 
void ResetClip ()
 Resets clipping region. More...
 
void RotateUCS (double Angle)
 Rotate user coordinate system (UCS) by a specified angle. More...
 
void MoveUCS (double NewX0, double NewY0)
 Move user coordinate system (UCS) to specified location. More...
 
void ScaleUCS (double ZoomX, double ZoomY)
 Applies the specified scaling operation to the transformation matrix of this Graphics object. More...
 
void SaveUCS (int Index)
 Saves current user coordinate system to position defined by the index. More...
 
void LoadUCS (int Index)
 Load a previously saved UCS from the library. More...
 

Detailed Description

Object used for drawing dynamic graphics

Member Function Documentation

void Clear ( )

Clear all operations.

IVisualComponent Draw ( double  Zoom)

Draw graphics object to calculation output with given zoom factor

Parameters
ZoomScale of the graphics
IVisualComponent Draw ( double  ZoomX,
double  ZoomY,
double  Angle 
)

Draw graphics object to calculation output with given zoom factors and rotation

Parameters
ZoomXScale of the graphics in axis X
ZoomYScale of the graphics in axis Y
AngleRotation of the graphics
IVisualComponent Draw ( double  Width,
double  Height 
)

Draw graphics object to calculation output. Best fit the object to rectangle with given width and height. Keep aspect ratio.

Parameters
WidthWidth of the rectangle
HeightHeight of the rectangle
IVisualComponent Draw ( double  Width,
double  Height,
bool  KeepAspectRatio 
)

Draw graphics object to calculation output. Best fit the object to rectangle with given width and height.

Parameters
WidthWidth of the rectangle
HeightHeight of the rectangle
KeepAspectRatiotrue to keep aspect ratio of the graphics object. Otherwise false.
void DrawAngleDim ( object  Center,
object  P1,
object  P2 
)

Draw angle dimension defined by center point and two points on the angle lines. Use Graphics.DefaultDimStyle.

Parameters
CenterCenter point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P1First point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2Second point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawAngleDim ( object  Center,
object  P1,
object  P2,
string  UserText 
)

Draw angle dimension defined by center point and two points on the angle lines. Use Graphics.DefaultDimStyle.

Parameters
CenterCenter point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P1First point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2Second point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawAngleDim ( object  Center,
object  P1,
object  P2,
TDimStyle  DimStyle 
)

Draw angle dimension defined by center point and two points on the angle lines. Use given dimension style.

Parameters
CenterCenter point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P1First point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2Second point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawAngleDim ( object  Center,
object  P1,
object  P2,
string  UserText,
TDimStyle  DimStyle 
)

Draw angle dimension defined by center point and two points on the angle lines. Use given dimension style.

Parameters
CenterCenter point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P1First point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2Second point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawAngleDim ( object  P1,
object  P2,
object  P3,
object  P4 
)

Draw angle dimension defined by 2+2 points. Use Graphics.DefaultDimStyle.

Parameters
P1Start point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2End point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P3Start point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P4End point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawAngleDim ( object  P1,
object  P2,
object  P3,
object  P4,
string  UserText 
)

Draw angle dimension defined by 2+2 points. Use Graphics.DefaultDimStyle.

Parameters
P1Start point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2End point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P3Start point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P4End point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawAngleDim ( object  P1,
object  P2,
object  P3,
object  P4,
TDimStyle  DimStyle 
)

Draw angle dimension defined by 2+2 points. Use given dimension style.

Parameters
P1Start point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2End point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P3Start point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P4End point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawAngleDim ( object  P1,
object  P2,
object  P3,
object  P4,
string  UserText,
TDimStyle  DimStyle 
)

Draw angle dimension defined by 2+2 points. Use given dimension style.

Parameters
P1Start point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P2End point of the first line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P3Start point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
P4End point of the second line. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawArc ( double  X,
double  Y,
double  Width,
double  Height,
double  StartAngle,
double  Angle 
)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

Parameters
XThe x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
YThe y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
WidthWidth of the rectangle that defines the ellipse.
HeightHeight of the rectangle that defines the ellipse.
StartAngleAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
AngleAngle in degrees measured clockwise from the startAngle parameter to ending point of the arc.
void DrawArc ( double  X,
double  Y,
double  Width,
double  Height,
double  StartAngle,
double  Angle,
Pen  P 
)

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

Parameters
XThe x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
YThe y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
WidthWidth of the rectangle that defines the ellipse.
HeightHeight of the rectangle that defines the ellipse.
StartAngleAngle in degrees measured clockwise from the x-axis to the starting point of the arc.
AngleAngle in degrees measured clockwise from the startAngle parameter to ending point of the arc.
PPen used to draw a circle.
void DrawArrow ( double  X0,
double  Y0,
double  X1,
double  Y1 
)

Draw arrow from the start to end point with default shape and size.

Parameters
X0X coordinate of start point
Y0Y coordinate of start point
X1X coordinate of end point
Y1Y coordinate of end point
void DrawArrow ( double  X0,
double  Y0,
double  X1,
double  Y1,
eArrowShape  ArrowShape,
double  ArrowSize 
)

Draw arrow from the start to end point with specified shape and size.

Parameters
X0X coordinate of start point
Y0Y coordinate of start point
X1X coordinate of end point
Y1Y coordinate of end point
ArrowShapeShape of the arrow. Use ArrowShape enumeration.
ArrowSizeSize of the arrow in pixels
void DrawArrow ( double  X0,
double  Y0,
double  X1,
double  Y1,
eArrowShape  ArrowShape,
double  ArrowSize,
Pen  P 
)

Draw arrow from the start to end point with specified shape, size and pen.

Parameters
X0X coordinate of start point
Y0Y coordinate of start point
X1X coordinate of end point
Y1Y coordinate of end point
ArrowShapeShape of the arrow. Use ArrowShape enumeration.
ArrowSizeSize of the arrow in pixels
PPen used to draw the arrow.
void DrawArrow ( object  Start,
object  End 
)

Draw arrow from the start to end point.

Parameters
StartStarting point of the arrow.
EndEnd point of the arrow.
void DrawArrow ( object  Start,
object  End,
eArrowShape  ArrowShape,
double  ArrowSize 
)

Draw arrow from the start to end point with specified shape and size.

Parameters
StartStarting point of the arrow.
EndEnd point of the arrow.
ArrowShapeShape of the arrow. Values from the enum: eArrowShape
ArrowSizeSize of the arrow in pixels.
void DrawArrow ( object  Start,
object  End,
eArrowShape  ArrowShape,
double  ArrowSize,
Pen  P 
)

Draw arrow from the start to end point with specified shape and size.

Parameters
StartStarting point of the arrow.
EndEnd point of the arrow.
ArrowShapeShape of the arrow. Values from the enum: eArrowShape
ArrowSizeSize of the arrow in pixels.
PPen used to draw the arrow.
void DrawChainDimX ( IList  Points)

Draw a horizontal chain dimension over given set of points. Use Graphics.DefaultDimStyle

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawChainDimX ( IList  Points,
string  UserText 
)

Draw a horizontal chain dimension over given set of points. Use Graphics.DefaultDimStyle

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawChainDimX ( IList  Points,
TDimStyle  DimStyle 
)

Draw a horizontal chain dimension over given set of points. Use given dimension style.

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawChainDimX ( IList  Points,
string  UserText,
TDimStyle  DimStyle 
)

Draw a horizontal chain dimension over given set of points. Use given dimension style.

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawChainDimY ( IList  Points)

Draw a vertical chain dimension over given set of points. Use Graphics.DefaultDimStyle

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawChainDimY ( IList  Points,
string  UserText 
)

Draw a vertical chain dimension over given set of points. Use Graphics.DefaultDimStyle

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawChainDimY ( IList  Points,
TDimStyle  DimStyle 
)

Draw a vertical chain dimension over given set of points. Use given dimension style.

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawChainDimY ( IList  Points,
string  UserText,
TDimStyle  DimStyle 
)

Draw a vertical chain dimension over given set of points. Use given dimension style.

Parameters
PointsSet of points to be meassured. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawCircle ( double  X,
double  Y,
double  D 
)

Draw a circle with given center and diameter.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
DCircle diameter.
void DrawCircle ( double  X,
double  Y,
double  D,
Pen  P 
)

Draw a circle with given center, diameter and pen.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
DCircle diameter.
PPen used to draw a circle.
void DrawCircle ( string  ColorName,
double  Width,
double  X,
double  Y,
double  R 
)

Obsolete function. Do not use!

void DrawDiameterDim ( object  Start,
object  End 
)

Draws diameter dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawDiameterDim ( object  Start,
object  End,
string  UserText 
)

Draws diameter dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawDiameterDim ( object  Start,
object  End,
TDimStyle  DimStyle 
)

Draws diameter dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDiameterDim ( object  Start,
object  End,
string  UserText,
TDimStyle  DimStyle 
)

Draws diameter dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDim ( object  Start,
object  End 
)

Draws aligned dimension defined by start and end point.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawDim ( object  Start,
object  End,
string  UserText 
)

Draws aligned dimension defined by start and end point.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawDim ( object  Start,
object  End,
double  Offset 
)

Draws aligned dimension defined by start and end point. Overrides default dimension offset.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
OffsetDistance betweeen dimension points and dimension line.
void DrawDim ( object  Start,
object  End,
string  UserText,
double  Offset 
)

Draws aligned dimension defined by start and end point. Overrides default dimension offset.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
OffsetDistance betweeen dimension points and dimension line.
void DrawDim ( object  Start,
object  End,
TDimStyle  DimStyle 
)

Draws aligned dimension defined by start and end point. Used given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDim ( object  Start,
object  End,
string  UserText,
TDimStyle  DimStyle 
)

Draws aligned dimension defined by start and end point. Used given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDimX ( object  Start,
object  End 
)

Draws horizontal dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawDimX ( object  Start,
object  End,
string  UserText 
)

Draws horizontal dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawDimX ( object  Start,
object  End,
double  Offset 
)

Draws horizontal dimension defined by start and end point. Overrides default dimension offset.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
OffsetDistance betweeen dimension points and dimension line.
void DrawDimX ( object  Start,
object  End,
string  UserText,
double  Offset 
)

Draws horizontal dimension defined by start and end point. Overrides default dimension offset.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
OffsetDistance betweeen dimension points and dimension line.
void DrawDimX ( object  Start,
object  End,
TDimStyle  DimStyle 
)

Draws horizontal dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDimX ( object  Start,
object  End,
string  UserText,
TDimStyle  DimStyle 
)

Draws horizontal dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDimY ( object  Start,
object  End 
)

Draws vertical dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawDimY ( object  Start,
object  End,
string  UserText 
)

Draws vertical dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawDimY ( object  Start,
object  End,
double  Offset 
)

Draws vertical dimension defined by start and end point. Overrides default dimension offset.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
OffsetDistance betweeen dimension points and dimension line.
void DrawDimY ( object  Start,
object  End,
string  UserText,
double  Offset 
)

Draws vertical dimension defined by start and end point. Overrides default dimension offset.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
OffsetDistance betweeen dimension points and dimension line.
void DrawDimY ( object  Start,
object  End,
TDimStyle  DimStyle 
)

Draws vertical dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawDimY ( object  Start,
object  End,
string  UserText,
TDimStyle  DimStyle 
)

Draws vertical dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawEllipse ( double  X,
double  Y,
double  A,
double  B 
)

Draw a ellipse with given center and dimensions.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
ALength of major semi-axis.
BLength of minor semi-axis.
void DrawEllipse ( double  X,
double  Y,
double  A,
double  B,
Pen  P 
)

Draw a ellipse with given center, dimensions and pen.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
ALength of major semi-axis.
BLength of minor semi-axis.
PPen used to draw a ellipse.
void DrawGraphics ( TGraphics  Graphics,
double  X,
double  Y 
)

Draw a external graphics object at specified location.

Parameters
GraphicsExternal graphics object.
XX-coordinate of insert point.
YY-coordinate of insert point.
void DrawGraphics ( TGraphics  Graphics,
double  X,
double  Y,
double  Angle 
)

Draw a external graphics object at specified location.

Parameters
GraphicsExternal graphics object.
XX-coordinate of insert point.
YY-coordinate of insert point.
AngleRotation of the external graphics.
void DrawGraphics ( TGraphics  Graphics,
double  X,
double  Y,
double  ZoomX,
double  ZoomY,
double  Angle 
)

Draw a external graphics object at specified location.

Parameters
GraphicsExternal graphics object.
XX-coordinate of insert point.
YY-coordinate of insert point.
ZoomXScale of the inserted graphics in X-axis.
ZoomYScale of the inserted graphics in Y-axis.
AngleRotation of the external graphics.
void DrawImage ( string  ImageName,
double  X,
double  Y 
)

Draw image from the calculation library at the specified position.

Parameters
ImageNameCase sensitive name of the image.
XX-coordinate of the image insert point.
YY-coordinate of the image insert point.
void DrawImage ( string  ImageName,
double  X,
double  Y,
double  Width,
double  Height 
)

Draw image from the calculation library at the specified position with the specified size.

Parameters
ImageNameCase sensitive name of the image.
XX-coordinate of the image insert point.
YY-coordinate of the image insert point.
WidthWidth of the drawn image.
HeightHeight of the drawn image.
void DrawLeader ( object  Start,
object  End,
string  Text 
)

Draws a leader with specified text. Text is automatically oriented according to leader line.

Parameters
StartStart point of the leader.
EndEnd point of the leader.
TextText to print.
void DrawLeader ( object  Start,
object  End,
string  Text,
ContentAlignment  Alignment 
)

Draws a leader with specified text. Text can me aligned as necessary.

Parameters
StartStart point of the leader.
EndEnd point of the leader.
TextText to print.
AlignmentAlignment of the text towards the leader line.
void DrawLeader ( object  Start,
object  End,
string  Text,
ContentAlignment  Alignment,
TDimStyle  DimStyle 
)

Draws a leader with specified text, alignment and style.

Parameters
StartStart point of the leader.
EndEnd point of the leader.
TextText to print.
AlignmentAlignment of the text towards the leader line.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawLine ( double  X1,
double  Y1,
double  X2,
double  Y2 
)

Draw a line with given coordinates and default pen.

Parameters
X1X-coordinate of start point
Y1Y-coordinate of start point
X2X-coordinate of second point
Y2Y-coordinate of second point
void DrawLine ( double  X1,
double  Y1,
double  X2,
double  Y2,
Pen  P 
)

Draw a line with given coordinates and pen.

Parameters
X1X-coordinate of start point
Y1Y-coordinate of start point
X2X-coordinate of second point
Y2Y-coordinate of second point
PPen used to draw a line
void DrawLine ( object  Pt1,
object  Pt2 
)

Draws a line connecting two points.

Parameters
Pt1Start point of the line. Acceptable types: Point, PointF, PointD, struct[X, Y].
Pt2Second point of the line. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawLine ( object  Pt1,
object  Pt2,
Pen  P 
)

Draws a line connecting two points.

Parameters
Pt1Start point of the line. Acceptable types: Point, PointF, PointD, struct[X, Y].
Pt2Second point of the line. Acceptable types: Point, PointF, PointD, struct[X, Y].
PPen used to draw a line
void DrawLine ( string  ColorName,
double  Width,
double  X1,
double  Y1,
double  X2,
double  Y2 
)

Obsolete function. Do not use!

void DrawLines ( IList  Points)

Draws a open polyline defined by an array of Points.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawLines ( IList  Points,
Pen  P 
)

Draws a open polyline defined by an array of Points.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
PPen used to draw a polyline
void DrawPolygon ( IList  Points)

Draws a closed polygon defined by an array of Points.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawPolygon ( IList  Points,
Pen  P 
)

Draws a closed polygon defined by an array of Points.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
PPen used to draw a polyline
void DrawPolyLine ( IList  Points)

Draws a closed polygon defined by an array of Points.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawPolyLine ( IList  Points,
Pen  P 
)

Draws a closed polygon defined by an array of Points.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
PPen used to draw a polyline
void DrawPolyLine ( string  ColorName,
double  Width,
IList  Points 
)

Obsolete function. Do not use!

void DrawRadiusDim ( object  Start,
object  End 
)

Draws radius dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
void DrawRadiusDim ( object  Start,
object  End,
string  UserText 
)

Draws radius dimension defined by start and end point. Use Graphics.DefaultDimStyle.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
void DrawRadiusDim ( object  Start,
object  End,
TDimStyle  DimStyle 
)

Draws radius dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawRadiusDim ( object  Start,
object  End,
string  UserText,
TDimStyle  DimStyle 
)

Draws radius dimension defined by start and end point. Use given dimension style.

Parameters
StartStart point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
EndEnd point of the dimension. Acceptable types: Point, PointF, PointD, struct[X, Y].
UserTextUser text of the dimension.
DimStyleStyle defining font, color, offset and other properties of the dimension.
void DrawRectangle ( double  X,
double  Y,
double  Width,
double  Height 
)

Draws a rectangle specified by a coordinate pair, a width, and a height.

Parameters
XThe x-coordinate of the upper-left corner of the rectangle to draw.
YThe y-coordinate of the upper-left corner of the rectangle to draw.
WidthThe width of the rectangle to draw.
HeightThe height of the rectangle to draw.
void DrawRectangle ( double  X,
double  Y,
double  Width,
double  Height,
Pen  P 
)

Draws a rectangle specified by a coordinate pair, a width, and a height.

Parameters
XThe x-coordinate of the upper-left corner of the rectangle to draw.
YThe y-coordinate of the upper-left corner of the rectangle to draw.
WidthThe width of the rectangle to draw.
HeightThe height of the rectangle to draw.
PA Pen that determines the color, width, and style of the rectangle.
void DrawText ( string  TXT,
Font  F,
double  X,
double  Y 
)

Draws the specified text string at the specified location with the specified Font.

Parameters
TXTString to draw.
FFont that defines the text format of the string.
XX-coordinate of insert point of the text.
YY-coordinate of insert point of the text.
void DrawText ( string  TXT,
Font  F,
double  X,
double  Y,
ContentAlignment  Alignment 
)

Draws the specified text string at the specified location with the specified Font.

Parameters
TXTString to draw.
FFont that defines the text format of the string.
XX-coordinate of insert point of the text.
YY-coordinate of insert point of the text.
AlignmentPosition of text insert point.
void DrawText ( string  TXT,
Font  F,
double  X,
double  Y,
ContentAlignment  Alignment,
double  Angle 
)

Draws the specified text string at the specified location with the specified Font.

Parameters
TXTString to draw.
FFont that defines the text format of the string.
XX-coordinate of insert point of the text.
YY-coordinate of insert point of the text.
AlignmentPosition of text insert point.
AngleAngle of text in degrees
void DrawText ( string  TXT,
Font  F,
double  X,
double  Y,
ContentAlignment  Alignment,
double  Angle,
Color  Color 
)

Draws the specified text string at the specified location with the specified Font.

Parameters
TXTString to draw.
FFont that defines the text format of the string.
XX-coordinate of insert point of the text.
YY-coordinate of insert point of the text.
AlignmentPosition of text insert point.
AngleAngle of text in degrees
ColorColor of the text.
void DrawText ( string  TXT,
Font  F,
double  X,
double  Y,
ContentAlignment  Alignment,
Color  Color 
)

Draws the specified text string at the specified location with the specified Font.

Parameters
TXTString to draw.
FFont that defines the text format of the string.
XX-coordinate of insert point of the text.
YY-coordinate of insert point of the text.
AlignmentPosition of text insert point.
ColorColor of the text.
void DrawText ( string  ColorName,
string  TXT,
Font  F,
double  X,
double  Y 
)

Obsolete function. Do not use!

void FillCircle ( double  X,
double  Y,
double  D,
Color  C 
)

Fill a circle with given center and diameter using solid brush of given color.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
DCircle diameter.
CColor of brush used for filling
void FillCircle ( double  X,
double  Y,
double  D,
Brush  Brush 
)

Fill a circle with given center and diameter using given brush

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
DCircle diameter.
BrushBrush used for filling.
void FillEllipse ( double  X,
double  Y,
double  A,
double  B,
Color  C 
)

Fill a ellipse with given center and dimensions with solid brush of given color.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
ALength of major semi-axis.
BLength of minor semi-axis.
CColor of brush.
void FillEllipse ( double  X,
double  Y,
double  A,
double  B,
Brush  Brush 
)

Fill a ellipse with given center and dimensions with given brush.

Parameters
XX-coordinate of circle center.
YY-coordinate of circle center.
ALength of major semi-axis.
BLength of minor semi-axis.
BrushBrush used for filling
void FillPolygon ( IList  Points,
Color  Color 
)

Fills the given polygon with solid brush.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
ColorColor of the Brush.
void FillPolygon ( IList  Points,
Brush  B 
)

Fills the polygon with given brush.

Parameters
PointsArray of Points that represent the vertices of the polygon. Acceptable types: Point, PointF, PointD, struct[X, Y].
BSolidBrush, HatchBrush, LinearGradientBrush, PathGradientBrush, TextureBrush.
TStructure GetZoom ( double  Width,
double  Height,
bool  KeepAspectRatio 
)

Calculate ZoomX and ZoomY for current graphics

Parameters
WidthWidth of the output
HeightHeight of the output
KeepAspectRatioTRUE to keep aspect ration, otherwise FALSE.
void LoadUCS ( int  Index)

Load a previously saved UCS from the library.

Parameters
IndexIndex of the required UCS.
void MoveUCS ( double  NewX0,
double  NewY0 
)

Move user coordinate system (UCS) to specified location.

Parameters
NewX0X-coordinate of new origin of the coordinate system.
NewY0Y-coordinate of new origin of the coordinate system.
void ResetClip ( )

Resets clipping region.

void RotateUCS ( double  Angle)

Rotate user coordinate system (UCS) by a specified angle.

Parameters
AngleAngle of rotation in degrees.
void SaveUCS ( int  Index)

Saves current user coordinate system to position defined by the index.

Parameters
IndexThe index at which the UCS should be saved.
void ScaleUCS ( double  ZoomX,
double  ZoomY 
)

Applies the specified scaling operation to the transformation matrix of this Graphics object.

Parameters
ZoomXScale applied to X-Axis.
ZoomYScale applied to Y-Axis.
void SetClip ( double  X1,
double  Y1,
double  X2,
double  Y2 
)

Sets the clipping region for the graphics. Entity (or its part) outside this region will not be drawn.

Parameters
X1X-coord of first point
Y1Y-coord of first point
X2X-coord of second point
Y2Y-coord of second point
void SetClip ( object  Point1,
object  Point2 
)

Sets the clipping region for the graphics. Entity (or its part) outside this region will not be drawn.

Parameters
Point1First point defining the clipping rectangle
Point2Second point defining the cliping rectangle