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 方法會將一連串連接的 Bezier 曲線新增至此路徑的目前圖形。
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 方法會判斷指定的點是否位於指定的 Graphicsobject 填入此路徑時填滿的區域。
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,該圖形仍視為已關閉。 下列方法會將內部封閉的圖形新增至路徑:

要求

要求 價值
目標平臺 窗戶
標頭 gdipluspath.h