GraphicsPath 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化一個新的類別實例 GraphicsPath ,並列 FillMode 舉為 Alternate。
多載
| 名稱 | Description |
|---|---|
| GraphicsPath() |
初始化一個新的類別實例 GraphicsPath ,值 FillMode 為 Alternate。 |
| GraphicsPath(FillMode) |
以指定的GraphicsPath列舉初始化該類別的新實例FillMode。 |
| GraphicsPath(Point[], Byte[]) |
初始化一個新的類別實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列。 |
| GraphicsPath(PointF[], Byte[]) |
初始化一個新的陣列實例 GraphicsPath ,使用指定的 PathPointType 和 PointF 陣列。 |
| GraphicsPath(Point[], Byte[], FillMode) |
初始化該類別的新實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列,以及指定的 FillMode 列舉元素。 |
| GraphicsPath(PointF[], Byte[], FillMode) |
初始化一個新的陣列實例 GraphicsPath ,使用指定的 PathPointType 和 PointF 陣列,以及指定的 FillMode 列舉元素。 |
| GraphicsPath(ReadOnlySpan<Point>, ReadOnlySpan<Byte>, FillMode) |
初始化該類別的新實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列,以及指定的 FillMode 列舉元素。 |
| GraphicsPath(ReadOnlySpan<PointF>, ReadOnlySpan<Byte>, FillMode) |
初始化該類別的新實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列,以及指定的 FillMode 列舉元素。 |
GraphicsPath()
初始化一個新的類別實例 GraphicsPath ,值 FillMode 為 Alternate。
public:
GraphicsPath();
public GraphicsPath();
Public Sub New ()
適用於
GraphicsPath(FillMode)
以指定的GraphicsPath列舉初始化該類別的新實例FillMode。
public:
GraphicsPath(System::Drawing::Drawing2D::FillMode fillMode);
public GraphicsPath(System.Drawing.Drawing2D.FillMode fillMode);
new System.Drawing.Drawing2D.GraphicsPath : System.Drawing.Drawing2D.FillMode -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (fillMode As FillMode)
參數
- fillMode
- FillMode
這個 FillMode 枚舉決定了這個內部 GraphicsPath 如何被填滿。
適用於
GraphicsPath(Point[], Byte[])
初始化一個新的類別實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列。
public:
GraphicsPath(cli::array <System::Drawing::Point> ^ pts, cli::array <System::Byte> ^ types);
public GraphicsPath(System.Drawing.Point[] pts, byte[] types);
new System.Drawing.Drawing2D.GraphicsPath : System.Drawing.Point[] * byte[] -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (pts As Point(), types As Byte())
參數
- pts
- Point[]
一個定義構成此Point點座標的結構陣列GraphicsPath。
- types
- Byte[]
一個列舉元素陣列 PathPointType ,用來指定陣列中 pts 每個對應點的類型。
適用於
GraphicsPath(PointF[], Byte[])
初始化一個新的陣列實例 GraphicsPath ,使用指定的 PathPointType 和 PointF 陣列。
public:
GraphicsPath(cli::array <System::Drawing::PointF> ^ pts, cli::array <System::Byte> ^ types);
public GraphicsPath(System.Drawing.PointF[] pts, byte[] types);
new System.Drawing.Drawing2D.GraphicsPath : System.Drawing.PointF[] * byte[] -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (pts As PointF(), types As Byte())
參數
- pts
- PointF[]
一個定義構成此PointF點座標的結構陣列GraphicsPath。
- types
- Byte[]
一個列舉元素陣列 PathPointType ,用來指定陣列中 pts 每個對應點的類型。
適用於
GraphicsPath(Point[], Byte[], FillMode)
初始化該類別的新實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列,以及指定的 FillMode 列舉元素。
public:
GraphicsPath(cli::array <System::Drawing::Point> ^ pts, cli::array <System::Byte> ^ types, System::Drawing::Drawing2D::FillMode fillMode);
public GraphicsPath(System.Drawing.Point[] pts, byte[] types, System.Drawing.Drawing2D.FillMode fillMode);
new System.Drawing.Drawing2D.GraphicsPath : System.Drawing.Point[] * byte[] * System.Drawing.Drawing2D.FillMode -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (pts As Point(), types As Byte(), fillMode As FillMode)
參數
- pts
- Point[]
一個定義構成此Point點座標的結構陣列GraphicsPath。
- types
- Byte[]
一個列舉元素陣列 PathPointType ,用來指定陣列中 pts 每個對應點的類型。
- fillMode
- FillMode
一個 FillMode 列舉,指定如何填充其中 GraphicsPath 形狀的內部。
適用於
GraphicsPath(PointF[], Byte[], FillMode)
初始化一個新的陣列實例 GraphicsPath ,使用指定的 PathPointType 和 PointF 陣列,以及指定的 FillMode 列舉元素。
public:
GraphicsPath(cli::array <System::Drawing::PointF> ^ pts, cli::array <System::Byte> ^ types, System::Drawing::Drawing2D::FillMode fillMode);
public GraphicsPath(System.Drawing.PointF[] pts, byte[] types, System.Drawing.Drawing2D.FillMode fillMode);
new System.Drawing.Drawing2D.GraphicsPath : System.Drawing.PointF[] * byte[] * System.Drawing.Drawing2D.FillMode -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (pts As PointF(), types As Byte(), fillMode As FillMode)
參數
- pts
- PointF[]
一個定義構成此PointF點座標的結構陣列GraphicsPath。
- types
- Byte[]
一個列舉元素陣列 PathPointType ,用來指定陣列中 pts 每個對應點的類型。
- fillMode
- FillMode
一個 FillMode 列舉,指定如何填充其中 GraphicsPath 形狀的內部。
適用於
GraphicsPath(ReadOnlySpan<Point>, ReadOnlySpan<Byte>, FillMode)
初始化該類別的新實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列,以及指定的 FillMode 列舉元素。
public GraphicsPath(ReadOnlySpan<System.Drawing.Point> pts, ReadOnlySpan<byte> types, System.Drawing.Drawing2D.FillMode fillMode = System.Drawing.Drawing2D.FillMode.Alternate);
new System.Drawing.Drawing2D.GraphicsPath : ReadOnlySpan<System.Drawing.Point> * ReadOnlySpan<byte> * System.Drawing.Drawing2D.FillMode -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (pts As ReadOnlySpan(Of Point), types As ReadOnlySpan(Of Byte), Optional fillMode As FillMode = System.Drawing.Drawing2D.FillMode.Alternate)
參數
- pts
- ReadOnlySpan<Point>
一個定義構成此Point點座標的結構陣列GraphicsPath。
- types
- ReadOnlySpan<Byte>
一個列舉元素陣列 PathPointType ,用來指定陣列中 pts 每個對應點的類型。
- fillMode
- FillMode
一個 FillMode 列舉,指定如何填充其中 GraphicsPath 形狀的內部。
適用於
GraphicsPath(ReadOnlySpan<PointF>, ReadOnlySpan<Byte>, FillMode)
初始化該類別的新實例 GraphicsPath ,使用指定的 PathPointType 和 Point 陣列,以及指定的 FillMode 列舉元素。
public GraphicsPath(ReadOnlySpan<System.Drawing.PointF> pts, ReadOnlySpan<byte> types, System.Drawing.Drawing2D.FillMode fillMode = System.Drawing.Drawing2D.FillMode.Alternate);
new System.Drawing.Drawing2D.GraphicsPath : ReadOnlySpan<System.Drawing.PointF> * ReadOnlySpan<byte> * System.Drawing.Drawing2D.FillMode -> System.Drawing.Drawing2D.GraphicsPath
Public Sub New (pts As ReadOnlySpan(Of PointF), types As ReadOnlySpan(Of Byte), Optional fillMode As FillMode = System.Drawing.Drawing2D.FillMode.Alternate)
參數
- pts
- ReadOnlySpan<PointF>
一個定義構成此Point點座標的結構陣列GraphicsPath。
- types
- ReadOnlySpan<Byte>
一個列舉元素陣列 PathPointType ,用來指定陣列中 pts 每個對應點的類型。
- fillMode
- FillMode
一個 FillMode 列舉,指定如何填充其中 GraphicsPath 形狀的內部。