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

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


このメソッドは、楕円の円弧と、その円弧の終了点と交差する 2 本の半径で定義された扇形の内部を塗りつぶします。楕円は、外接する四角形によって定義されます。扇形は、startAngle パラメータと sweepAngle パラメータで定義される 2 本の半径と、これらの半径と楕円の交差部分の間にある円弧から構成されます。
sweepAngle パラメータが 360 度よりも大きいか、-360 度よりも小さい場合は、それぞれ 360 度または -360 度として処理されます。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub FillPieFloat(ByVal e As PaintEventArgs) ' Create solid brush. Dim redBrush As New SolidBrush(Color.Red) ' Create location and size of ellipse. Dim x As Single = 0.0F Dim y As Single = 0.0F Dim width As Single = 200.0F Dim height As Single = 100.0F ' Create start and sweep angles. Dim startAngle As Single = 0.0F Dim sweepAngle As Single = 45.0F ' Fill pie to screen. e.Graphics.FillPie(redBrush, x, y, width, height, startAngle, _ sweepAngle) End Sub
public void FillPieFloat(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.Red); // Create location and size of ellipse. float x = 0.0F; float y = 0.0F; float width = 200.0F; float height = 100.0F; // Create start and sweep angles. float startAngle = 0.0F; float sweepAngle = 45.0F; // Fill pie to screen. e.Graphics.FillPie(redBrush, x, y, width, height, startAngle, sweepAngle); }
public: void FillPieFloat( PaintEventArgs^ e ) { // Create solid brush. SolidBrush^ redBrush = gcnew SolidBrush( Color::Red ); // Create location and size of ellipse. float x = 0.0F; float y = 0.0F; float width = 200.0F; float height = 100.0F; // Create start and sweep angles. float startAngle = 0.0F; float sweepAngle = 45.0F; // Fill pie to screen. e->Graphics->FillPie( redBrush, x, y, width, height, startAngle, sweepAngle ); }
public void FillPieFloat(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.get_Red()); // Create location and size of ellipse. float x = 0; float y = 0; float width = 200; float height = 100; // Create start and sweep angles. float startAngle = 0; float sweepAngle = 45; // Fill pie to screen. e.get_Graphics().FillPie(redBrush, x, y, width, height, startAngle, sweepAngle); } //FillPieFloat

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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

Public Sub FillPie ( _ brush As Brush, _ rect As Rectangle, _ startAngle As Single, _ sweepAngle As Single _ )
Dim instance As Graphics Dim brush As Brush Dim rect As Rectangle Dim startAngle As Single Dim sweepAngle As Single instance.FillPie(brush, rect, startAngle, sweepAngle)


このメソッドは、楕円の円弧と、その円弧の終了点と交差する 2 本の半径で定義された扇形の内部を塗りつぶします。楕円は、外接する四角形によって定義されます。扇形は、startAngle パラメータと sweepAngle パラメータで定義される 2 本の半径と、これらの半径と楕円の交差部分の間にある円弧から構成されます。
sweepAngle パラメータが 360 度よりも大きいか、-360 度よりも小さい場合は、それぞれ 360 度または -360 度として処理されます。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub FillPieRectangle(ByVal e As PaintEventArgs) ' Create solid brush. Dim redBrush As New SolidBrush(Color.Red) ' Create rectangle for ellipse. Dim rect As New Rectangle(0, 0, 200, 100) ' Create start and sweep angles. Dim startAngle As Single = 0.0F Dim sweepAngle As Single = 45.0F ' Fill pie to screen. e.Graphics.FillPie(redBrush, rect, startAngle, sweepAngle) End Sub
public void FillPieRectangle(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.Red); // Create rectangle for ellipse. Rectangle rect = new Rectangle(0, 0, 200, 100); // Create start and sweep angles. float startAngle = 0.0F; float sweepAngle = 45.0F; // Fill pie to screen. e.Graphics.FillPie(redBrush, rect, startAngle, sweepAngle); }
public: void FillPieRectangle( PaintEventArgs^ e ) { // Create solid brush. SolidBrush^ redBrush = gcnew SolidBrush( Color::Red ); // Create rectangle for ellipse. Rectangle rect = Rectangle(0,0,200,100); // Create start and sweep angles. float startAngle = 0.0F; float sweepAngle = 45.0F; // Fill pie to screen. e->Graphics->FillPie( redBrush, rect, startAngle, sweepAngle ); }
public void FillPieRectangle(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.get_Red()); // Create rectangle for ellipse. Rectangle rect = new Rectangle(0, 0, 200, 100); // Create start and sweep angles. float startAngle = 0; float sweepAngle = 45; // Fill pie to screen. e.get_Graphics().FillPie(redBrush, rect, startAngle, sweepAngle); } //FillPieRectangle

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.FillPie メソッド (Brush, Int32, Int32, Int32, Int32, Int32, Int32)
アセンブリ: System.Drawing (system.drawing.dll 内)

Public Sub FillPie ( _ brush As Brush, _ x As Integer, _ y As Integer, _ width As Integer, _ height As Integer, _ startAngle As Integer, _ sweepAngle As Integer _ )
Dim instance As Graphics Dim brush As Brush Dim x As Integer Dim y As Integer Dim width As Integer Dim height As Integer Dim startAngle As Integer Dim sweepAngle As Integer instance.FillPie(brush, x, y, width, height, startAngle, sweepAngle)
public void FillPie ( Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle )
public: void FillPie ( Brush^ brush, int x, int y, int width, int height, int startAngle, int sweepAngle )
public void FillPie ( Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle )
public function FillPie ( brush : Brush, x : int, y : int, width : int, height : int, startAngle : int, sweepAngle : int )


このメソッドは、楕円の円弧と、その円弧の終了点と交差する 2 本の半径で定義された扇形の内部を塗りつぶします。楕円は、外接する四角形によって定義されます。扇形は、startAngle パラメータと sweepAngle パラメータで定義される 2 本の半径と、これらの半径と楕円の交差部分の間にある円弧から構成されます。
sweepAngle パラメータが 360 度よりも大きいか、-360 度よりも小さい場合は、それぞれ 360 度または -360 度として処理されます。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub FillPieInt(ByVal e As PaintEventArgs) ' Create solid brush. Dim redBrush As New SolidBrush(Color.Red) ' Create location and size of ellipse. Dim x As Integer = 0 Dim y As Integer = 0 Dim width As Integer = 200 Dim height As Integer = 100 ' Create start and sweep angles. Dim startAngle As Integer = 0 Dim sweepAngle As Integer = 45 ' Fill pie to screen. e.Graphics.FillPie(redBrush, x, y, width, height, startAngle, _ sweepAngle) End Sub
public void FillPieInt(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.Red); // Create location and size of ellipse. int x = 0; int y = 0; int width = 200; int height = 100; // Create start and sweep angles. int startAngle = 0; int sweepAngle = 45; // Fill pie to screen. e.Graphics.FillPie(redBrush, x, y, width, height, startAngle, sweepAngle); }
public: void FillPieInt( PaintEventArgs^ e ) { // Create solid brush. SolidBrush^ redBrush = gcnew SolidBrush( Color::Red ); // Create location and size of ellipse. int x = 0; int y = 0; int width = 200; int height = 100; // Create start and sweep angles. int startAngle = 0; int sweepAngle = 45; // Fill pie to screen. e->Graphics->FillPie( redBrush, x, y, width, height, startAngle, sweepAngle ); }
public void FillPieInt(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.get_Red()); // Create location and size of ellipse. int x = 0; int y = 0; int width = 200; int height = 100; // Create start and sweep angles. int startAngle = 0; int sweepAngle = 45; // Fill pie to screen. e.get_Graphics().FillPie(redBrush, x, y, width, height, startAngle, sweepAngle); } //FillPieInt

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.FillPie メソッド

名前 | 説明 |
---|---|
Graphics.FillPie (Brush, Rectangle, Single, Single) | RectangleF 構造体と 2 本の半径によって指定された楕円で定義される扇形の内部を塗りつぶします。 |
Graphics.FillPie (Brush, Int32, Int32, Int32, Int32, Int32, Int32) | 座標ペア、幅、および高さで指定された楕円と 2 本の半径によって定義される扇形の内部を塗りつぶします。 |
Graphics.FillPie (Brush, Single, Single, Single, Single, Single, Single) | 座標ペア、幅、および高さで指定された楕円と 2 本の半径によって定義される扇形の内部を塗りつぶします。 |

- Graphics.FillPieのページへのリンク