GraphicsPath 类 (gdipluspath.h)

GraphicsPath 对象存储一系列线条、曲线和形状。 可以通过调用 Graphics 对象的 DrawPath 方法来绘制整个序列。 可以将线条、曲线和形状序列划分为图形,借助 GraphicsPathIterator 对象,可以绘制所选图形。 还可以在序列中放置标记,以便绘制路径的选定部分。

继承

GraphicsPath 类实现 GdiplusBase。

方法

GraphicsPath 类具有这些方法。

 
GraphicsPath::AddArc

GraphicsPath::AddArc 方法将椭圆弧添加到此路径的当前图中。 (重载 1/4)
GraphicsPath::AddArc

GraphicsPath::AddArc 方法将椭圆弧添加到此路径的当前图中。 (重载 4/4)
GraphicsPath::AddArc

GraphicsPath::AddArc 方法将椭圆弧添加到此路径的当前图中。 (重载 3/4)
GraphicsPath::AddArc

GraphicsPath::AddArc 方法将椭圆弧添加到此路径的当前图中。 (重载 2/4)
GraphicsPath::AddBezier

GraphicsPath::AddBezier 方法将 B zier 样条添加到此路径的当前图中。 (重载 2/3)
GraphicsPath::AddBezier

GraphicsPath::AddBezier 方法将 Bezier 样条添加到此路径的当前图中。
GraphicsPath::AddBezier

GraphicsPath::AddBezier 方法将 B zier 样条添加到此路径的当前图中。 (重载 3/3)
GraphicsPath::AddBezier

GraphicsPath::AddBezier 方法将 B zier 样条添加到此路径的当前图中。 (重载 1/3)
GraphicsPath::AddBeziers

GraphicsPath::AddBeziers 方法将连接的 B zier 样条序列添加到此路径的当前图中。
GraphicsPath::AddBeziers

GraphicsPath::AddBeziers 方法将连接的贝塞尔样条序列添加到此路径的当前图中。
GraphicsPath::AddClosedCurve

GraphicsPath::AddClosedCurve 方法将一个闭合的基数样条添加到此路径。 (重载 2/4)
GraphicsPath::AddClosedCurve

GraphicsPath::AddClosedCurve 方法将一个闭合的基数样条添加到此路径。 (重载 4/4)
GraphicsPath::AddClosedCurve

GraphicsPath::AddClosedCurve 方法将一个闭合的基数样条添加到此路径。 (重载 1/4)
GraphicsPath::AddClosedCurve

GraphicsPath::AddClosedCurve 方法将一个闭合的基数样条添加到此路径。 (重载 3/4)
GraphicsPath::AddCurve

GraphicsPath::AddCurve 方法将基数样条添加到此路径的当前图中。 (重载 5/6)
GraphicsPath::AddCurve

GraphicsPath::AddCurve 方法将基数样条添加到此路径的当前图中。 (重载 6/6)
GraphicsPath::AddCurve

GraphicsPath::AddCurve 方法将基数样条添加到此路径的当前图中。 (重载 3/6)
GraphicsPath::AddCurve

GraphicsPath::AddCurve 方法将基数样条添加到此路径的当前图中。 (重载 2/6)
GraphicsPath::AddCurve

GraphicsPath::AddCurve 方法将基数样条添加到此路径的当前图中。 (重载 1/6)
GraphicsPath::AddCurve

GraphicsPath::AddCurve 方法将基数样条添加到此路径的当前图中。 (重载 4/6)
GraphicsPath::AddEllipse

GraphicsPath::AddEllipse 方法将椭圆添加到此路径。 (重载 4/4)
GraphicsPath::AddEllipse

GraphicsPath::AddEllipse 方法将椭圆添加到此路径。 (重载 2/4)
GraphicsPath::AddEllipse

GraphicsPath::AddEllipse 方法将椭圆添加到此路径。 (重载 3/4)
GraphicsPath::AddEllipse

GraphicsPath::AddEllipse 方法将椭圆添加到此路径。 (重载 1/4)
GraphicsPath::AddLine

GraphicsPath::AddLine 方法将此路径的当前图形添加一行。 (重载 2/4)
GraphicsPath::AddLine

GraphicsPath::AddLine 方法将此路径的当前图形添加一行。 (重载 4/4)
GraphicsPath::AddLine

GraphicsPath::AddLine 方法将此路径的当前图形添加一行。 (重载 3/4)
GraphicsPath::AddLine

GraphicsPath::AddLine 方法将此路径的当前图形添加一行。 (重载 1/4)
GraphicsPath::AddLines

GraphicsPath::AddLines 方法将一系列连接线添加到此路径的当前图中。 (重载 2/2)
GraphicsPath::AddLines

GraphicsPath::AddLines 方法将一系列连接线添加到此路径的当前图中。 (重载 1/2)
GraphicsPath::AddPath

GraphicsPath::AddPath 方法将路径添加到此路径。
GraphicsPath::AddPie

GraphicsPath::AddPie 方法向此路径添加饼图。 (重载 1/4)
GraphicsPath::AddPie

GraphicsPath::AddPie 方法向此路径添加饼图。 (重载 4/4)
GraphicsPath::AddPie

GraphicsPath::AddPie 方法向此路径添加饼图。 (重载 3/4)
GraphicsPath::AddPie

GraphicsPath::AddPie 方法向此路径添加饼图。 (重载 2/4)
GraphicsPath::AddPolygon

GraphicsPath::AddPolygon 方法将多边形添加到此路径。 (重载 2/2)
GraphicsPath::AddPolygon

GraphicsPath::AddPolygon 方法将多边形添加到此路径。 (重载 1/2)
GraphicsPath::AddRectangle

GraphicsPath::AddRectangle 方法向此路径添加一个矩形。 (重载 1/2)
GraphicsPath::AddRectangle

GraphicsPath::AddRectangle 方法向此路径添加一个矩形。 (重载 2/2)
GraphicsPath::AddRectangles

GraphicsPath::AddRectangles 方法将矩形序列添加到此路径
GraphicsPath::AddRectangles

GraphicsPath::AddRectangles 方法向此路径添加一系列矩形。
GraphicsPath::AddString

GraphicsPath::AddString 方法将字符串的轮廓添加到此路径。
GraphicsPath::AddString

GraphicsPath::AddString 方法将字符串的轮廓添加到此路径。 (重载 1/3)
GraphicsPath::AddString

GraphicsPath::AddString 方法将字符串的轮廓添加到此路径。 (重载 3/3)
GraphicsPath::AddString

GraphicsPath::AddString 方法将字符串的轮廓添加到此路径。 (重载 2/3)
GraphicsPath::ClearMarkers

GraphicsPath::ClearMarkers 方法清除此路径中的标记。
GraphicsPath::Clone

GraphicsPath::Clone 方法创建一个新的 GraphicsPath 对象,并使用此 GraphicsPath 对象的内容对其进行初始化。
GraphicsPath::CloseAllFigures

GraphicsPath::CloseAllFigures 方法关闭此路径中的所有打开的图形。
GraphicsPath::CloseFigure

GraphicsPath::CloseFigure 方法关闭此路径的当前图形。
GraphicsPath::Flatten

GraphicsPath::Flatten 方法将转换应用于此路径,并将路径中的每个曲线转换为一系列连接线。
GraphicsPath::GetBounds

GraphicsPath::GetBounds 方法获取此路径的边框。 (重载 1/2)
GraphicsPath::GetBounds

GraphicsPath::GetBounds 方法获取此路径的边框。 (重载 2/2)
GraphicsPath::GetFillMode

GraphicsPath::GetFillMode 方法获取此路径的填充模式。
GraphicsPath::GetLastPoint

GraphicsPath::GetLastPoint 方法获取此路径中最后一个图形的终点。
GraphicsPath::GetLastStatus

GraphicsPath::GetLastStatus 方法返回一个值,该值指示此 GraphicsPath 对象最近方法失败的性质。
GraphicsPath::GetPathData

GraphicsPath::GetPathData 方法从此路径获取点数组和点类型数组。 这两个数组一起定义此路径的线条、曲线、图形和标记。
GraphicsPath::GetPathPoints

GraphicsPath::GetPathPoints 方法获取此路径的点数组。 数组包含用于绘制路径的线条和 B zier 样条的端点和控制点。
GraphicsPath::GetPathPoints

GraphicsPath::GetPathPoints 方法获取此路径的点数组。
GraphicsPath::GetPathTypes

GraphicsPath::GetPathTypes 方法获取此路径的点类型数组。
GraphicsPath::GetPointCount

GraphicsPath::GetPointCount 方法获取此路径的数据点数组中的点数。 这与路径的点类型数组中的类型数相同。
GraphicsPath::GraphicsPath

本主题列出了 GraphicsPath 类的构造函数。 有关完整的类列表,请参阅 GraphicsPath 类。 (重载 2/2)
GraphicsPath::GraphicsPath

基于点数组、类型数组和填充模式创建 GraphicsPath::GraphicsPath 对象。 (重载 2/2)
GraphicsPath::GraphicsPath

基于点数组、类型数组和填充模式创建 GraphicsPath::GraphicsPath 对象。 (重载 1/2)
GraphicsPath::GraphicsPath

创建 GraphicsPath::GraphicsPath 对象并初始化填充模式。 这是默认构造函数。
GraphicsPath::GraphicsPath

本主题列出了 GraphicsPath 类的构造函数。 有关完整的类列表,请参阅 GraphicsPath 类。 (重载 1/2)
GraphicsPath::IsOutlineVisible

GraphicsPath::IsOutlineVisible 方法确定当路径由指定的 Graphicsobject 和指定的笔绘制时,指定的点是否接触此路径的轮廓。
GraphicsPath::IsOutlineVisible

GraphicsPath::IsOutlineVisible 方法确定指定的点是否接触路径的轮廓。
GraphicsPath::IsOutlineVisible

GraphicsPath::IsOutlineVisible 方法确定当路径由指定的 Graphics 对象和指定的笔绘制时,指定的点是否接触此路径的轮廓。 (重载 1/2)
GraphicsPath::IsOutlineVisible

GraphicsPath::IsOutlineVisible 方法确定当路径由指定的 Graphics 对象和指定的笔绘制时,指定的点是否接触此路径的轮廓。 (重载 2/2)
GraphicsPath::IsVisible

GraphicsPath::IsVisible 方法确定指定点是否位于由指定的 Graphics 对象填充此路径时所填充的区域。 (重载 1/2)
GraphicsPath::IsVisible

GraphicsPath::IsVisible 方法确定指定的点是否位于某个区域中。
GraphicsPath::IsVisible

GraphicsPath::IsVisible 方法确定指定点是否位于由指定的 Graphics 对象填充此路径时所填充的区域。
GraphicsPath::IsVisible

GraphicsPath::IsVisible 方法确定指定点是否位于由指定的 Graphics 对象填充此路径时所填充的区域。 (重载 2/2)
GraphicsPath::Outline

GraphicsPath::Outline 方法转换和平展此路径,然后转换此路径的数据点,使其仅表示路径的轮廓。
GraphicsPath::Reset

GraphicsPath::Reset 方法清空路径并将填充模式设置为 FillModeAlternate。
GraphicsPath::Reverse

GraphicsPath::Reverse 方法反转定义此路径的线条和曲线的点的顺序。
GraphicsPath::SetFillMode

GraphicsPath::SetFillMode 方法设置此路径的填充模式。
GraphicsPath::SetMarker

GraphicsPath::SetMarker 方法将此路径中的最后一个点指定为标记点。
GraphicsPath::StartFigure

GraphicsPath::StartFigure 方法在不关闭当前图形的情况下启动新图形。 添加到此路径的后续点将添加到新图中。
GraphicsPath::Transform

GraphicsPath::Transform 方法将此路径的每个数据点乘以指定的矩阵。
GraphicsPath::Warp

GraphicsPath::Warp 方法将扭曲转换应用于此路径。 GraphicsPath::Warp 方法还会平展 (转换为路径) 直线序列。
GraphicsPath::Widen

GraphicsPath::Widen 方法将此路径替换为曲线,这些曲线将用指定的笔绘制此路径时填充的区域括起来。 GraphicsPath::Widen 方法也会平展路径。

注解

路径由一个或多个图形组成。 向路径添加线条和曲线时,这些线条和曲线将成为图形的一部分。 可以通过调用 GraphicsPath::StartFigure 方法启动新图形。 绘制路径时,单个图形中的线条和曲线由直线连接:一条线或曲线的终点连接到下一条线或曲线的起点。 在一个图形的末尾和下一个图形的开头之间不绘制任何连接线。

图形可以是打开的,也可以是关闭的。 可以通过调用 GraphicsPath::CloseFigure 方法关闭图形。 调用 GraphicsPath::CloseFigure 后,添加到路径的下一条线、曲线或形状是下一个图的一部分。 绘制路径时,每个闭合图形的终点会自动连接到该图形的起点。

例如,某些形状 (矩形和椭圆) 本质上是闭合的。 将固有封闭形状添加到路径时,该形状本身位于图形中,即使不调用 GraphicsPath::CloseFigure,该图形也被视为闭合形状。 以下方法将固有的闭合图添加到路径:

要求

要求
目标平台 Windows
标头 gdipluspath.h