Path Methods

Applies to: Graphics Mill 12.1, 6.x-12.x (may differ)

The Path type exposes the following members.

Methods

Name Description
Public method ApplyTransform

Applies the specified linear transfromation to this path.

Public method Clear

Removes all elements of the path.

Public method Close

Closes the path by copying the starting point to the ending one.

Public method Static member Create Overloaded.

Creates a Path from the existing path.

Public method CurveTo Overloaded.

Adds a Bezier curve to the path.

Public method Dispose

Releases all resources used by this Path.

Public method DrawEllipse Overloaded.

Adds an ellipse to the path.

Public method DrawPath

Adds a new Path to the path.

Public method DrawRectangle Overloaded.

Adds a rectangle to the path.

Public method DrawText

Draws text along the path using the specified font registry.

Public method Static member Ellipse Overloaded.

Creates a new Path shaped as an ellipse.

Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FitCurves Overloaded.

Replaces the polylines of the path with cubic Bezier curves.

Public method Flatten

Replaces the curves of the path with polylines.

Public method Static member GetAlphaContour Overloaded.
Public method GetArea Overloaded.

Returns the area of the region filled by the path.

Public method GetBounds

Returns the bounding rectangle of the path.

Public method Static member GetContour Overloaded.

Gets the contour of the region where the specified channel of an image reaches the specified level.

Public method GetHashCode

Returns a hash code for this Path.

(Overrides Object.GetHashCode().)
Public method GetLength

Returns length of this Path, in pixels.

Public method GetObjectData

Populates a SerializationInfo with the data needed to serialize the Path object.

Public method GetOuterContours Overloaded.

Returns a path that contains only the outer boundaries of this path.

Public method GetType (Inherited from Object.)
Public method Inflate Overloaded.

Grows or shrinks every closed region of the path by the specified distance.

Public method Static member Intersect

Returns an intersection of the two specified paths.

Public method Invert

Inverts the path direction.

Public method LineTo Overloaded.

Adds a line to the path.

Protected method MemberwiseClone (Inherited from Object.)
Public method MoveTo Overloaded.

Adds a point to the path.

Public method OffsetContour

Offsets the contour of the path by the specified amount.

Public method Static member Rectangle Overloaded.

Creates a new Path shaped as a rectangle.

Public method Rotate

Rotates the path by the given angle.

Public method Scale

Scales coordinates of all points in the path.

Public method Simplify

Removes the points of the path that lie close to the line through their neighbors.

Public method Smooth

Smooths every subpath of the path along its length.

Public method Split

Splits a path into separate paths.

Public method Static member Subtract

Returns a result of subtraction of the second path from the first path.

Public method ToGdiPlusGraphicsPath

Converts the path to the GraphicsPath.

Public method ToString (Inherited from Object.)
Public method Translate

Translates the path.

Public method Static member Union

Returns a union of the two specified paths.

Public method Widen Overloaded.

Replaces the path with the outline of its stroke.

Public method Static member Xor

Returns a result of exclusive disjunction of the two paths.

See Also

Reference