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,該圖形仍會被視為關閉。 下列方法會將內部關閉的圖形新增至路徑:

規格需求

需求
目標平台 Windows
標頭 gdipluspath.h