System::Drawing::Drawing2D::GraphicsPath 类

GraphicsPath class

表示一组相连的直线和曲线。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 new 运算符创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class GraphicsPath : public System::Object

方法

方法描述
AddArc(float, float, float, float, float, float)向当前对象表示的路径添加指定的椭圆弧。
AddArc(int, int, int, int, float, float)向当前对象表示的路径添加指定的椭圆弧。
AddArc(const RectangleF&, float, float)向当前对象表示的路径添加指定的椭圆弧。
AddArc(const Rectangle&, float, float)向当前对象表示的路径添加指定的椭圆弧。
AddBezier(const Point&, const Point&, const Point&, const Point&)向当前对象表示的路径添加指定的三次贝塞尔曲线。
AddBezier(const PointF&, const PointF&, const PointF&, const PointF&)向当前对象表示的路径添加指定的三次贝塞尔曲线。
AddBezier(int, int, int, int, int, int, int, int)向当前对象表示的路径添加指定的三次贝塞尔曲线。
AddBezier(float, float, float, float, float, float, float, float)向当前对象表示的路径添加指定的三次贝塞尔曲线。
AddBeziers(const ArrayPtr<Point>&)向当前图形添加一系列相连的三次贝塞尔曲线。
AddBeziers(const ArrayPtr<PointF>&)向当前图形添加一系列相连的三次贝塞尔曲线。
AddClosedCurve(const ArrayPtr<PointF>&, float)向当前对象表示的路径添加指定的闭合曲线。
AddClosedCurve(const ArrayPtr<Point>&, float)向当前对象表示的路径添加指定的闭合曲线。
AddCurve(const ArrayPtr<PointF>&, float)向当前对象表示的路径添加指定的曲线。
AddCurve(const ArrayPtr<Point>&, float)向当前对象表示的路径添加指定的曲线。
AddCurve(const ArrayPtr<PointF>&, int, int, float)向当前对象表示的路径添加指定的曲线。
AddCurve(const ArrayPtr<Point>&, int, int, float)向当前对象表示的路径添加指定的曲线。
AddEllipse(float, float, float, float)向当前对象表示的路径添加指定的椭圆。
AddEllipse(int, int, int, int)向当前对象表示的路径添加指定的椭圆。
AddEllipse(const RectangleF&)向当前对象表示的路径添加指定的椭圆。
AddEllipse(const Rectangle&)向当前对象表示的路径添加指定的椭圆。
AddLine(const Point&, const Point&)向当前对象表示的路径添加指定的直线。
AddLine(const PointF&, const PointF&)向当前对象表示的路径添加指定的直线。
AddLine(int, int, int, int)向当前对象表示的路径添加指定的直线。
AddLine(float, float, float, float)向当前对象表示的路径添加指定的直线。
AddLines(const ArrayPtr<PointF>&)向当前对象表示的路径添加指定的一系列相连的线段。
AddLines(const ArrayPtr<Point>&)向当前对象表示的路径添加指定的一系列相连的线段。
AddPath(const SharedPtr<GraphicsPath>&, bool)向当前对象表示的路径添加指定的路径。
AddPie(float, float, float, float, float, float)向当前对象表示的路径添加指定的饼形轮廓。
AddPie(int, int, int, int, float, float)向当前对象表示的路径添加指定的饼形轮廓。
AddPie(const Rectangle&, float, float)向当前对象表示的路径添加指定的饼形轮廓。
AddPolygon(const ArrayPtr<PointF>&)向当前对象表示的路径添加指定的多边形。
AddPolygon(const ArrayPtr<Point>&)向当前对象表示的路径添加指定的多边形。
AddRectangle(const Rectangle&)向当前对象表示的路径添加指定的矩形。
AddRectangle(const RectangleF&)向当前对象表示的路径添加指定的矩形。
AddRectangles(const ArrayPtr<Rectangle>&)向当前对象表示的路径添加指定的一系列矩形。
AddRectangles(const ArrayPtr<RectangleF>&)向当前对象表示的路径添加指定的一系列矩形。
AddString(const String&, const SharedPtr<FontFamily>&, int, float, Point, const SharedPtr<StringFormat>&)向当前对象表示的路径添加一串文本。
AddString(const String&, const SharedPtr<FontFamily>&, int, float, PointF, const SharedPtr<StringFormat>&)向当前对象表示的路径添加一串文本。
AddString(const String&, const SharedPtr<FontFamily>&, int, float, Rectangle, const SharedPtr<StringFormat>&)向当前对象表示的路径添加一串文本。
AddString(const String&, const SharedPtr<FontFamily>&, int, float, RectangleF, const SharedPtr<StringFormat>&)向当前对象表示的路径添加一串文本。
virtual Clone()创建当前对象的副本。
CloseAllFigures()关闭所有未闭合的图形并开始一个新图形。
CloseFigure()关闭当前图形并开始一个新图形。
Dispose()释放当前对象获取的所有操作系统资源。
Flatten()通过将路径中的每条曲线转换为一系列相连的直线来将其扁平化。使用的平整度值为 0.25。
Flatten(const MatrixPtr&)通过将路径中的每条曲线转换为一系列相连的直线来将其扁平化。使用的平整度值为 0.25。
Flatten(const MatrixPtr&, float)通过将路径中的每条曲线转换为一系列相连的直线来将其扁平化。
get_FillMode()返回当前对象的填充模式。
get_PathData()返回一个 PathData 对象,其中包含构成当前对象表示的路径的点及其类型。
get_PathPoints() const返回一个数组,包含构成当前对象表示的路径的点。
get_PathTypes() const返回一个数组,其中包含指示由当前对象表示的路径所组成的点的类型的值。
get_PointCount() const返回由当前对象表示的路径中的点数。
GetBounds(const MatrixPtr&, const SharedPtr<Pen>&) const返回一个 RectangleF 对象,该对象表示在使用指定矩阵变换后,包围由当前对象表示的路径的矩形。
GetFigureFlags()返回一个值,该值是 Detail::FigureType 值的按位组合,用于指示由当前对象表示的路径中包含的图形类型。
GetLastPoint() const返回一个 PointF 对象,表示路径中的最后一个点。
GraphicsPath(FillMode)使用指定的填充模式构造一个新的 GraphicsPath 类实例。
GraphicsPath(const ArrayPtr<Point>&, const ArrayPtr<uint8_t>&, FillMode)构造一个新的 GraphicsPath 对象实例,该对象表示指定的路径。
GraphicsPath(const ArrayPtr<PointF>&, const ArrayPtr<uint8_t>&, FillMode)构造一个新的 GraphicsPath 对象实例,该对象表示指定的路径。
GraphicsPath(const SkPath&)
IsOutlineVisible(const PointF&, const SharedPtr<Pen>&)指示在使用指定的 Pen 绘制时,指定的点是否位于此 GraphicsPath 的轮廓内部(下方)。未实现。
IsVisible(const PointF&)确定指定的点是否位于由当前对象表示的路径内部。
IsVisible(float, float)确定指定的点是否位于由当前对象表示的路径内部。
Reset()通过移除所有点来清空路径。
Reverse()反转此 GraphicsPath 的 PathPoints 数组中的点顺序。
set_FillMode(FillMode)设置当前对象的填充模式。
SetMarkers()未实现。
StartFigure()开始一个新图形。
Transform(const MatrixPtr&)通过对其应用指定的变换矩阵来转换由当前对象表示的路径。
Transform(const SkMatrix&)
Widen(const SharedPtr<Pen>&)用原始路径的轮廓替换此路径。
~GraphicsPath()析构函数。

另见