言語

GraphicsPath.AddPie メソッド

定義

円グラフ図形のアウトラインをこのパスに追加します。

オーバーロード

名前 説明
AddPie(Rectangle, Single, Single)

円グラフ図形のアウトラインをこのパスに追加します。

AddPie(Int32, Int32, Int32, Int32, Single, Single)

円グラフ図形のアウトラインをこのパスに追加します。

AddPie(Single, Single, Single, Single, Single, Single)

円グラフ図形のアウトラインをこのパスに追加します。

AddPie(Rectangle, Single, Single)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

円グラフ図形のアウトラインをこのパスに追加します。

public:
 void AddPie(System::Drawing::Rectangle rect, float startAngle, float sweepAngle);
public void AddPie(System.Drawing.Rectangle rect, float startAngle, float sweepAngle);
member this.AddPie : System.Drawing.Rectangle * single * single -> unit
Public Sub AddPie (rect As Rectangle, startAngle As Single, sweepAngle As Single)

パラメーター

rect
Rectangle

円グラフの描画元の楕円を定義する外接する四角形を表す Rectangle

startAngle
Single

円のセクションの開始角度。x 軸から時計回りに度単位で測定されます。

sweepAngle
Single

startAngleと円断面の終点の間の角度を、startAngleから時計回りに度単位で測定します。

例については、AddPie(Int32, Int32, Int32, Int32, Single, Single)を参照してください。

注釈

円形状は、楕円の部分的な輪郭と、部分アウトラインの端点と交差する 2 つの放射状線によって定義されます。 部分アウトラインは startAngle (x 軸から時計回りに測定) で始まり、 startAngle + sweepAngleで終了します。

適用対象

AddPie(Int32, Int32, Int32, Int32, Single, Single)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

円グラフ図形のアウトラインをこのパスに追加します。

public:
 void AddPie(int x, int y, int width, int height, float startAngle, float sweepAngle);
public void AddPie(int x, int y, int width, int height, float startAngle, float sweepAngle);
member this.AddPie : int * int * int * int * single * single -> unit
Public Sub AddPie (x As Integer, y As Integer, width As Integer, height As Integer, startAngle As Single, sweepAngle As Single)

パラメーター

x
Int32

円を描画する楕円を定義する外接する四角形の左上隅の x 座標。

y
Int32

円を描画する楕円を定義する外接する四角形の左上隅の y 座標。

width
Int32

円の描画元の楕円を定義する外接する四角形の幅。

height
Int32

円の描画元の楕円を定義する外接する四角形の高さ。

startAngle
Single

円のセクションの開始角度。x 軸から時計回りに度単位で測定されます。

sweepAngle
Single

startAngleと円断面の終点の間の角度を、startAngleから時計回りに度単位で測定します。

次のコード例は、Windows フォームで使用できるように設計されており、PaintEventArgs イベント オブジェクトである eOnPaint が必要です。 このコードでは、グラフィックス パスを作成し、円の図形を追加してから、画面にパスを描画します。

private:
   void AddPieExample( PaintEventArgs^ e )
   {
      // Create a pie slice of a circle using the AddPie method.
      GraphicsPath^ myPath = gcnew GraphicsPath;
      myPath->AddPie( 20, 20, 70, 70, -45, 90 );

      // Draw the path to the screen.
      Pen^ myPen = gcnew Pen( Color::Black,2.0f );
      e->Graphics->DrawPath( myPen, myPath );
   }
private void AddPieExample(PaintEventArgs e)
{
             
    // Create a pie slice of a circle using the AddPie method.
    GraphicsPath myPath = new GraphicsPath();
    myPath.AddPie(20, 20, 70, 70, -45, 90);
             
    // Draw the path to the screen.
    Pen myPen = new Pen(Color.Black, 2);
    e.Graphics.DrawPath(myPen, myPath);
}
Public Sub AddPieExample(ByVal e As PaintEventArgs)

    ' Create a pie slice of a circle using the AddPie method.
    Dim myPath As New GraphicsPath
    myPath.AddPie(20, 20, 70, 70, -45, 90)

    ' Draw the path to the screen.
    Dim myPen As New Pen(Color.Black, 2)
    e.Graphics.DrawPath(myPen, myPath)
End Sub

注釈

円形状は、楕円の部分的な輪郭と、部分アウトラインの端点と交差する 2 つの放射状線によって定義されます。 部分アウトラインは startAngle (x 軸から時計回りに測定) で始まり、 startAngle + sweepAngleで終了します。

適用対象

AddPie(Single, Single, Single, Single, Single, Single)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

円グラフ図形のアウトラインをこのパスに追加します。

public:
 void AddPie(float x, float y, float width, float height, float startAngle, float sweepAngle);
public void AddPie(float x, float y, float width, float height, float startAngle, float sweepAngle);
member this.AddPie : single * single * single * single * single * single -> unit
Public Sub AddPie (x As Single, y As Single, width As Single, height As Single, startAngle As Single, sweepAngle As Single)

パラメーター

x
Single

円を描画する楕円を定義する外接する四角形の左上隅の x 座標。

y
Single

円を描画する楕円を定義する外接する四角形の左上隅の y 座標。

width
Single

円の描画元の楕円を定義する外接する四角形の幅。

height
Single

円の描画元の楕円を定義する外接する四角形の高さ。

startAngle
Single

円のセクションの開始角度。x 軸から時計回りに度単位で測定されます。

sweepAngle
Single

startAngleと円断面の終点の間の角度を、startAngleから時計回りに度単位で測定します。

例については、AddPie(Int32, Int32, Int32, Int32, Single, Single)を参照してください。

注釈

円形状は、楕円の部分的な輪郭と、部分アウトラインの端点と交差する 2 つの放射状線によって定義されます。 部分アウトラインは startAngle (x 軸から時計回りに測定) で始まり、 startAngle + sweepAngleで終了します。

適用対象