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() | 析构函数。 |
另见
- Class Object
- Namespace System::Drawing::Drawing2D
- Library Aspose.Page for C++