Interface IGDIPlus.IGPGraphicsPath
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Contents |
Syntax
Delphi:
type IGPGraphicsPath = interface
Summary
Interface to a TGPGraphicsPath object.
Description
Defines interface to a TGPGraphicsPath object.
A TGPGraphicsPath object stores a sequence of lines, curves, and shapes. You can draw the entire sequence by calling the DrawPath method of a Graphics object. You can partition the sequence of lines, curves, and shapes into figures, and with the help of a TGPGraphicsPathIterator object, you can draw selected figures. You can also place markers in the sequence, so that you can draw selected portions of the path. Remarks A path consists of one or more figures. As you add lines and curves to a path, those lines and curves become part of a figure. You can start a new figure by calling the TGPGraphicsPath.StartFigure method. When you draw a path, the lines and curves within an individual figure are connected by straight lines; the ending point of one line or curve is connected to the starting point of the next line or curve. No connecting line is drawn between the end of one figure and the start of the next figure.
A figure can be open or closed. You can close a figure by calling the TGPGraphicsPath.CloseFigure method. After you call TGPGraphicsPath.CloseFigure, the next line, curve, or shape that you add to the path is part of the next figure. When you draw a path, the ending point of each closed figure is automatically connected to the starting point of that figure.
Some shapes (for example, rectangles and ellipses) are intrinsically closed. When you add an intrinsically closed shape to a path, that shape is in a figure by itself, and that figure is considered closed even if you don't call TGPGraphicsPath.CloseFigure. The following methods add intrinsically closed figures to a path:
TGPGraphicsPath.AddClosedCurve Methods
TGPGraphicsPath.AddEllipse Methods
TGPGraphicsPath.AddPie Methods
TGPGraphicsPath.AddPolygon Methods
TGPGraphicsPath.AddRectangle Methods
TGPGraphicsPath.AddRectangles Methods
TGPGraphicsPath.AddString Methods
Properties
- LastPoint - Returns the ending point of the last figure in this path.
- FillMode - Sets or gets the fill mode of this path.
Methods
- function GetNativePath() : GpPath
- function Clone() : TGPGraphicsPath - Creates a new TGPGraphicsPath object, and initializes it with the contents of this TGPGraphicsPath object.
- function Reset() : TGPGraphicsPath - Empties the path and sets the fill mode to FillModeAlternate.
- function GetFillMode() : TGPFillMode - Returns the fill mode of this path.
- function SetFillMode(fillmode : TGPFillMode) : TGPGraphicsPath - Sets the fill mode of this path.
- procedure SetFillModeProp(fillmode : TGPFillMode)
- function GetPathData() : IGPPathData - Returns an IGPPathData interface to object containing an array of points and an array of point types from this path.
- function StartFigure() : TGPGraphicsPath - Starts a new figure without closing the current figure. Subsequent points added to this path are added to the new figure.
- function CloseFigure() : TGPGraphicsPath - Closes the current figure of this path.
- function CloseAllFigures() : TGPGraphicsPath - Closes all open figures in this path.
- function SetMarker() : TGPGraphicsPath - Designates the last point in this path as a marker point.
- function ClearMarkers() : TGPGraphicsPath - Clears the markers from this path.
- function Reverse() : TGPGraphicsPath - Reverses the order of the points that define this path's lines and curves.
- function GetLastPoint() : TGPPointF - Returns the ending point of the last figure in this path.
- function AddLineF(pt1 : TGPPointF; pt2 : TGPPointF) : TGPGraphicsPath - Adds a line to the path.
- function AddLineF(x1 : Single; y1 : Single; x2 : Single; y2 : Single) : TGPGraphicsPath - Adds a line to the path.
- function AddLinesF(points : array) : TGPGraphicsPath
- function AddLine(pt1 : TGPPoint; pt2 : TGPPoint) : TGPGraphicsPath - Adds a line to the path.
- function AddLine(x1 : Integer; y1 : Integer; x2 : Integer; y2 : Integer) : TGPGraphicsPath - Adds a line to the path.
- function AddLines(points : array) : TGPGraphicsPath
- function AddArcF(rect : TGPRectF; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds an Arc to the path.
- function AddArcF(x : Single; y : Single; width : Single; height : Single; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds an Arc to the path.
- function AddArc(rect : TGPRect; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds an Arc to the path.
- function AddArc(x : Integer; y : Integer; width : Integer; height : Integer; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds an Arc to the path.
- function AddBezierF(pt1 : TGPPointF; pt2 : TGPPointF; pt3 : TGPPointF; pt4 : TGPPointF) : TGPGraphicsPath - Adds a Bézier spline to the current figure of this path.
- function AddBezierF(x1 : Single; y1 : Single; x2 : Single; y2 : Single; x3 : Single; y3 : Single; x4 : Single; y4 : Single) : TGPGraphicsPath - Adds a Bézier spline to the current figure of this path.
- function AddBeziersF(points : array) : TGPGraphicsPath
- function AddBezier(pt1 : TGPPoint; pt2 : TGPPoint; pt3 : TGPPoint; pt4 : TGPPoint) : TGPGraphicsPath - Adds a Bézier spline to the current figure of this path.
- function AddBezier(x1 : Integer; y1 : Integer; x2 : Integer; y2 : Integer; x3 : Integer; y3 : Integer; x4 : Integer; y4 : Integer) : TGPGraphicsPath - Adds a Bézier spline to the current figure of this path.
- function AddBeziers(points : array) : TGPGraphicsPath
- function AddCurveF(points : array) : TGPGraphicsPath
- function AddCurveF(points : array; tension : Single) : TGPGraphicsPath
- function AddCurveF(points : array; offset : Integer; numberOfSegments : Integer; tension : Single) : TGPGraphicsPath
- function AddCurve(points : array) : TGPGraphicsPath
- function AddCurve(points : array; tension : Single) : TGPGraphicsPath
- function AddCurve(points : array; offset : Integer; numberOfSegments : Integer; tension : Single) : TGPGraphicsPath
- function AddClosedCurveF(points : array) : TGPGraphicsPath
- function AddClosedCurveF(points : array; tension : Single) : TGPGraphicsPath
- function AddClosedCurve(points : array) : TGPGraphicsPath
- function AddClosedCurve(points : array; tension : Single) : TGPGraphicsPath
- function AddRectangleF(rect : TGPRectF) : TGPGraphicsPath - Adds a rectangle to the path.
- function AddRectangleF(x : Single; y : Single; width : Single; height : Single) : TGPGraphicsPath - Adds a rectangle to the path.
- function AddRectangle(rect : TGPRect) : TGPGraphicsPath - Adds a rectangle to the path.
- function AddRectangle(x : Integer; y : Integer; width : Integer; height : Integer) : TGPGraphicsPath - Adds a rectangle to the path.
- function AddRoundRectangleF(ARect : TGPRectF; ACornerSize : TGPSizeF) : TGPGraphicsPath - Adds a round rectangle to the path.
- function AddRoundRectangle(ARect : TGPRect; ACornerSize : TGPSize) : TGPGraphicsPath - Adds a round rectangle to the path.
- function AddRectanglesF(rects : array) : TGPGraphicsPath
- function AddRectangles(rects : array) : TGPGraphicsPath
- function AddEllipseF(rect : TGPRectF) : TGPGraphicsPath - Adds an ellipse to the path.
- function AddEllipseF(x : Single; y : Single; width : Single; height : Single) : TGPGraphicsPath - Adds an ellipse to the path.
- function AddEllipse(rect : TGPRect) : TGPGraphicsPath - Adds an ellipse to the path.
- function AddEllipse(x : Integer; y : Integer; width : Integer; height : Integer) : TGPGraphicsPath - Adds an ellipse to the path.
- function AddPieF(rect : TGPRectF; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds a Pie to the path.
- function AddPieF(x : Single; y : Single; width : Single; height : Single; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds a Pie to the path.
- function AddPie(rect : TGPRect; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds a Pie to the path.
- function AddPie(x : Integer; y : Integer; width : Integer; height : Integer; startAngle : Single; sweepAngle : Single) : TGPGraphicsPath - Adds a Pie to the path.
- function AddPolygonF(points : array) : TGPGraphicsPath
- function AddPolygon(points : array) : TGPGraphicsPath
- function AddPath(addingPath : IGPGraphicsPath; connect : Boolean) : TGPGraphicsPath - Adds a path to this path.
- function AddStringF(string_ : WideString; font : IGPFont; origin : TGPPointF; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font and an origin for the string.
- function AddStringF(string_ : WideString; font : IGPFont; layoutRect : TGPRectF; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font, a layout rectangle, and a format.
- function AddString(string_ : WideString; font : IGPFont; origin : TGPPoint; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font and an origin for the string.
- function AddString(string_ : WideString; font : IGPFont; layoutRect : TGPRect; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font, a layout rectangle, and a format.
- function AddStringF(string_ : WideString; family : IGPFontFamily; style : Integer; emSize : Single; origin : TGPPointF; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font and an origin for the string.
- function AddStringF(string_ : WideString; family : IGPFontFamily; style : Integer; emSize : Single; layoutRect : TGPRectF; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font, a layout rectangle, and a format.
- function AddString(string_ : WideString; family : IGPFontFamily; style : Integer; emSize : Single; origin : TGPPoint; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font and an origin for the string.
- function AddString(string_ : WideString; family : IGPFontFamily; style : Integer; emSize : Single; layoutRect : TGPRect; format : IGPStringFormat) : TGPGraphicsPath - Adds a string based on a font, a layout rectangle, and a format.
- function Transform(matrix : IGPMatrix) : TGPGraphicsPath - Multiplies each of this path's data points by a specified matrix.
- function GetBoundsF(matrix : IGPMatrix; pen : IGPPen) : TGPRectF - Returns a rectangle that bounds this GraphicsPath.
- function GetBounds(matrix : IGPMatrix; pen : IGPPen) : TGPRect - Returns a rectangle that bounds this GraphicsPath.
- function Flatten(matrix : IGPMatrix; flatness : Single) : TGPGraphicsPath - Applies a transformation to this path and converts each curve in the path to a sequence of connected lines.
- function Widen(pen : IGPPen; matrix : IGPMatrix; flatness : Single) : TGPGraphicsPath - Replaces this path with curves that enclose the area that is filled when the path is drawn by a specified pen.
- function Outline(matrix : IGPMatrix; flatness : Single) : TGPGraphicsPath - Transforms and flattens the path, and then converts this path's data points so that they represent only the outline of the path.
- function Warp(destPoints : array; srcRect : TGPRectF; matrix : IGPMatrix; warpMode : TGPWarpMode; var flatness : Single) : TGPGraphicsPath
- function GetPointCount() : Integer - Returns the number of points in this path's array of data points.
- function GetPathTypes(types : PBYTE; count : Integer) : TGPGraphicsPath - Returns the path's array of point types.
- function GetPathPointsF() : TGPPointFArray - Returns the path's array of points.
- function GetPathPoints() : TGPPointArray - Returns the path's array of points.
- function IsVisibleF(point : TGPPointF; g : IGPGraphics) : Boolean - Determines whether a specified point lies in the area that is filled when this path is filled by a specified Graphics object.
- function IsVisibleF(x : Single; y : Single; g : IGPGraphics) : Boolean - Determines whether a specified point lies in the area that is filled when this path is filled by a specified Graphics object.
- function IsVisible(point : TGPPoint; g : IGPGraphics) : Boolean - Determines whether a specified point lies in the area that is filled when this path is filled by a specified Graphics object.
- function IsVisible(x : Integer; y : Integer; g : IGPGraphics) : Boolean - Determines whether a specified point lies in the area that is filled when this path is filled by a specified Graphics object.
- function IsOutlineVisibleF(point : TGPPointF; pen : IGPPen; g : IGPGraphics) : Boolean - Determines whether a specified point touches the outline of this path when the path is drawn by a specified TGPGraphics object and a specified pen.
- function IsOutlineVisibleF(x : Single; y : Single; pen : IGPPen; g : IGPGraphics) : Boolean - Determines whether a specified point touches the outline of this path when the path is drawn by a specified TGPGraphics object and a specified pen.
- function IsOutlineVisible(point : TGPPoint; pen : IGPPen; g : IGPGraphics) : Boolean - Determines whether a specified point touches the outline of this path when the path is drawn by a specified TGPGraphics object and a specified pen.
- function IsOutlineVisible(x : Integer; y : Integer; pen : IGPPen; g : IGPGraphics) : Boolean - Determines whether a specified point touches the outline of this path when the path is drawn by a specified TGPGraphics object and a specified pen.