Click or drag to resize

GraphicsPath Class

Defines primitives that can be used to draw or fill a path on a Graphics object
Inheritance Hierarchy
SystemObject
  Eto.DrawingGraphicsPath

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class GraphicsPath : IGraphicsPath, 
	IDisposable, IControlObjectSource, IHandlerSource

The GraphicsPath type exposes the following members.

Constructors
  NameDescription
Public methodGraphicsPath
Initializes a new instance of the GraphicsPath class
Public methodGraphicsPath(IGraphicsPath)
Initializes a new instance of the GraphicsPath class.
Top
Properties
  NameDescription
Public propertyBounds
Gets the bounding rectangle for this path
Public propertyCurrentPoint
Gets the current point
Public propertyFillMode
Sets a value indicating how this graphics path should be filled.
Public propertyStatic memberInstantiator Obsolete.
Creates a delegate that can be used to create instances of the IGraphicsPath with little overhead
Public propertyIsEmpty
Gets a value indicating that this graphics path is empty and has no segments
Top
Methods
  NameDescription
Public methodAddArc
Adds an arc into the specified rectangle
Public methodAddBezier
Adds a bezier curve to the path with two control points
Public methodAddCurve
Adds a curve that intersects with the specified points to the path
Public methodAddEllipse
Adds an ellipse to the path
Public methodAddLine
Adds a line to the path with the specified start and end points
Public methodAddLines
Adds lines to each of the specified points to the path
Public methodAddPath
Adds the specified path to the current path, optionally connecting the current figure to the start of the path
Public methodAddRectangle
Adds a rectangle to the path
Public methodClone
Creates a clone of the graphics path
Public methodCloseFigure
Closes the current figure by connecting a line to the beginning of the figure
Public methodStatic memberCreate
Creates a new instance of the IGraphicsPath for the specified generator
Public methodDispose
Releases all resources used by the GraphicsPath object
Protected methodDispose(Boolean)
Disposes the graphics path
Public methodStatic memberGetRoundRect(RectangleF, Single)
Creates a rounded rectangle using the specified corner radius
Public methodStatic memberGetRoundRect(RectangleF, Single, Single, Single, Single)
Creates a rounded rectangle using the specified corner radius
Public methodLineTo
Adds a line from the current position to the specified location
Public methodMoveTo
Moves the current position to the specified location without adding anything to the path
Public methodStartFigure
Starts a new figure without closing the current figure
Public methodTransform
Transforms the points in the path with the specified matrix
Top
Extension Methods
  NameDescription
Public Extension MethodAddArc
Adds an arc to the path at the specified location
(Defined by GraphicsPathExtensions.)
Public Extension MethodAddCurve(PointF)Overloaded.
Adds a curve that intersects with the specified points to the path
(Defined by GraphicsPathExtensions.)
Public Extension MethodAddCurve(Single, PointF)Overloaded.
Adds a curve that intersects with the specified points to the path with the given tension
(Defined by GraphicsPathExtensions.)
Public Extension MethodAddEllipse
Adds an ellipse to the path at the specified location
(Defined by GraphicsPathExtensions.)
Public Extension MethodAddLine
Adds a line to the path
(Defined by GraphicsPathExtensions.)
Public Extension MethodAddLines
Adds lines to each of the specified points
(Defined by GraphicsPathExtensions.)
Public Extension MethodAddRectangle
Adds a rectangle to the path at the specified location
(Defined by GraphicsPathExtensions.)
Public Extension MethodLineTo
Adds a line from the current position to the specified location
(Defined by GraphicsPathExtensions.)
Public Extension MethodMoveTo
Moves the current position to the specified point without adding anything to the path
(Defined by GraphicsPathExtensions.)
Top
Remarks
This is a thin wrapper around the IGraphicsPath interface, which is created via Create.
See Also