GraphicsPath.AddPie メソッド (Single, Single, Single, Single, Single, Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Public Sub AddPie ( _ x As Single, _ y As Single, _ width As Single, _ height As Single, _ startAngle As Single, _ sweepAngle As Single _ )
Dim instance As GraphicsPath Dim x As Single Dim y As Single Dim width As Single Dim height As Single Dim startAngle As Single Dim sweepAngle As Single instance.AddPie(x, y, width, height, startAngle, sweepAngle)
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 )
public void AddPie ( float x, float y, float width, float height, float startAngle, float sweepAngle )
public function AddPie ( x : float, y : float, width : float, height : float, startAngle : float, sweepAngle : float )

扇形は、楕円のアウトラインの一部分と、その部分アウトラインの終点と交わる 2 本の半径によって定義されます。部分的なアウトラインは、x 軸から時計回りに測定した startAngle から始まり、startAngle + sweepAngle で終了します。


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddPie メソッド (Rectangle, Single, Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As GraphicsPath Dim rect As Rectangle Dim startAngle As Single Dim sweepAngle As Single instance.AddPie(rect, startAngle, sweepAngle)

扇形は、楕円のアウトラインの一部分と、その部分アウトラインの終点と交わる 2 本の半径によって定義されます。部分的なアウトラインは、x 軸から時計回りに測定した startAngle から始まり、startAngle + sweepAngle で終了します。


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddPie メソッド (Int32, Int32, Int32, Int32, Single, Single)
アセンブリ: System.Drawing (system.drawing.dll 内)

Public Sub AddPie ( _ x As Integer, _ y As Integer, _ width As Integer, _ height As Integer, _ startAngle As Single, _ sweepAngle As Single _ )
Dim instance As GraphicsPath Dim x As Integer Dim y As Integer Dim width As Integer Dim height As Integer Dim startAngle As Single Dim sweepAngle As Single instance.AddPie(x, y, width, height, startAngle, sweepAngle)
public function AddPie ( x : int, y : int, width : int, height : int, startAngle : float, sweepAngle : float )

扇形は、楕円のアウトラインの一部分と、その部分アウトラインの終点と交わる 2 本の半径によって定義されます。部分的なアウトラインは、x 軸から時計回りに測定した startAngle から始まり、startAngle + sweepAngle で終了します。

次のコード例は、Windows フォームでの使用を意図してデザインされており、OnPaint イベント オブジェクトである PaintEventArgse が必要です。このコードはグラフィックス パスを作成し、扇形を追加してから、画面にパスを描画します。
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
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); }
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.get_Black(), 2); e.get_Graphics().DrawPath(myPen, myPath); } //AddPieExample

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


GraphicsPath.AddPie メソッド
Weblioに収録されているすべての辞書からGraphicsPath.AddPieを検索する場合は、下記のリンクをクリックしてください。

- GraphicsPath.AddPieのページへのリンク