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

Public Sub DrawArc ( _ pen As Pen, _ rect As Rectangle, _ startAngle As Single, _ sweepAngle As Single _ )
Dim instance As Graphics Dim pen As Pen Dim rect As Rectangle Dim startAngle As Single Dim sweepAngle As Single instance.DrawArc(pen, rect, startAngle, sweepAngle)


このメソッドは、楕円の周囲の一部である円弧を描画します。楕円は、四角形の境界によって定義されます。円弧は、楕円の周囲のうち、startAngle パラメータと startAngle+ sweepAngle パラメータの間の部分です。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
x 軸に対して +45 ~ -45 度の間のセグメントがない不完全な楕円が生成されます。
Public Sub DrawArcRectangle(ByVal e As PaintEventArgs) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create rectangle to bound ellipse. Dim rect As New Rectangle(0, 0, 100, 200) ' Create start and sweep angles on ellipse. Dim startAngle As Single = 45.0F Dim sweepAngle As Single = 270.0F ' Draw arc to screen. e.Graphics.DrawArc(blackPen, rect, startAngle, sweepAngle) End Sub
public void DrawArcRectangle(PaintEventArgs e) { // Create pen. Pen blackPen= new Pen(Color.Black, 3); // Create rectangle to bound ellipse. Rectangle rect = new Rectangle(0, 0, 100, 200); // Create start and sweep angles on ellipse. float startAngle = 45.0F; float sweepAngle = 270.0F; // Draw arc to screen. e.Graphics.DrawArc(blackPen, rect, startAngle, sweepAngle); }
public: void DrawArcRectangle( PaintEventArgs^ e ) { // Create pen. Pen^ blackPen = gcnew Pen( Color::Black,3.0f ); // Create rectangle to bound ellipse. Rectangle rect = Rectangle(0,0,100,200); // Create start and sweep angles on ellipse. float startAngle = 45.0F; float sweepAngle = 270.0F; // Draw arc to screen. e->Graphics->DrawArc( blackPen, rect, 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.DrawArc メソッド

名前 | 説明 |
---|---|
Graphics.DrawArc (Pen, Rectangle, Single, Single) | Rectangle 構造体で指定された楕円の一部を表す円弧を描画します。 |
Graphics.DrawArc (Pen, RectangleF, Single, Single) | RectangleF 構造体で指定された楕円の一部を表す円弧を描画します。 |
Graphics.DrawArc (Pen, Int32, Int32, Int32, Int32, Int32, Int32) | 座標ペア、幅、および高さで指定された楕円の一部を表す円弧を描画します。 |
Graphics.DrawArc (Pen, Single, Single, Single, Single, Single, Single) | 座標ペア、幅、および高さで指定された楕円の一部を表す円弧を描画します。 |

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

Public Sub DrawArc ( _ pen As Pen, _ rect As RectangleF, _ startAngle As Single, _ sweepAngle As Single _ )
Dim instance As Graphics Dim pen As Pen Dim rect As RectangleF Dim startAngle As Single Dim sweepAngle As Single instance.DrawArc(pen, rect, startAngle, sweepAngle)


このメソッドは、楕円の周囲の一部である円弧を描画します。楕円は、四角形の境界によって定義されます。円弧は、楕円の周囲のうち、startAngle パラメータと startAngle+ sweepAngle パラメータの間の部分です。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
x 軸に対して +45 ~ -45 度の間のセグメントがない不完全な楕円が生成されます。
Public Sub DrawArcRectangleF(ByVal e As PaintEventArgs) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create rectangle to bound ellipse. Dim rect As New RectangleF(0.0F, 0.0F, 100.0F, 200.0F) ' Create start and sweep angles on ellipse. Dim startAngle As Single = 45.0F Dim sweepAngle As Single = 270.0F ' Draw arc to screen. e.Graphics.DrawArc(blackPen, rect, startAngle, sweepAngle) End Sub
public void DrawArcRectangleF(PaintEventArgs e) { // Create pen. Pen blackPen= new Pen(Color.Black, 3); // Create rectangle to bound ellipse. RectangleF rect = new RectangleF(0.0F, 0.0F, 100.0F, 200.0F); // Create start and sweep angles on ellipse. float startAngle = 45.0F; float sweepAngle = 270.0F; // Draw arc to screen. e.Graphics.DrawArc(blackPen, rect, startAngle, sweepAngle); }
public: void DrawArcRectangleF( PaintEventArgs^ e ) { // Create pen. Pen^ blackPen = gcnew Pen( Color::Black,3.0f ); // Create rectangle to bound ellipse. RectangleF rect = RectangleF(0.0F,0.0F,100.0F,200.0F); // Create start and sweep angles on ellipse. float startAngle = 45.0F; float sweepAngle = 270.0F; // Draw arc to screen. e->Graphics->DrawArc( blackPen, rect, 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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

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


このメソッドは、楕円の周囲の一部である円弧を描画します。楕円は、四角形の境界によって定義されます。円弧は、楕円の周囲のうち、startAngle パラメータと startAngle+ sweepAngle パラメータの間の部分です。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
x 軸に対して +45 ~ -45 度の間のセグメントがない不完全な楕円が生成されます。
Public Sub DrawArcFloat(ByVal e As PaintEventArgs) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create coordinates of rectangle to bound ellipse. Dim x As Single = 0.0F Dim y As Single = 0.0F Dim width As Single = 100.0F Dim height As Single = 200.0F ' Create start and sweep angles on ellipse. Dim startAngle As Single = 45.0F Dim sweepAngle As Single = 270.0F ' Draw arc to screen. e.Graphics.DrawArc(blackPen, x, y, width, height, startAngle, _ sweepAngle) End Sub
public void DrawArcFloat(PaintEventArgs e) { // Create pen. Pen blackPen= new Pen(Color.Black, 3); // Create coordinates of rectangle to bound ellipse. float x = 0.0F; float y = 0.0F; float width = 100.0F; float height = 200.0F; // Create start and sweep angles on ellipse. float startAngle = 45.0F; float sweepAngle = 270.0F; // Draw arc to screen. e.Graphics.DrawArc(blackPen, x, y, width, height, startAngle, sweepAngle); }
public: void DrawArcFloat( PaintEventArgs^ e ) { // Create pen. Pen^ blackPen = gcnew Pen( Color::Black,3.0f ); // Create coordinates of rectangle to bound ellipse. float x = 0.0F; float y = 0.0F; float width = 100.0F; float height = 200.0F; // Create start and sweep angles on ellipse. float startAngle = 45.0F; float sweepAngle = 270.0F; // Draw arc to screen. e->Graphics->DrawArc( blackPen, x, y, width, height, 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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

Public Sub DrawArc ( _ pen As Pen, _ x As Integer, _ y As Integer, _ width As Integer, _ height As Integer, _ startAngle As Integer, _ sweepAngle As Integer _ )
Dim instance As Graphics Dim pen As Pen 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.DrawArc(pen, x, y, width, height, startAngle, sweepAngle)
public void DrawArc ( Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle )
public: void DrawArc ( Pen^ pen, int x, int y, int width, int height, int startAngle, int sweepAngle )
public void DrawArc ( Pen pen, int x, int y, int width, int height, int startAngle, int sweepAngle )
public function DrawArc ( pen : Pen, x : int, y : int, width : int, height : int, startAngle : int, sweepAngle : int )


このメソッドは、楕円の周囲の一部である円弧を描画します。楕円は、四角形の境界によって定義されます。円弧は、楕円の周囲のうち、startAngle パラメータと startAngle+ sweepAngle パラメータの間の部分です。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
x 軸に対して +45 ~ -45 度の間のセグメントがない不完全な楕円が生成されます。
Public Sub DrawArcInt(ByVal e As PaintEventArgs) ' Create pen. Dim blackPen As New Pen(Color.Black, 3) ' Create coordinates of rectangle to bound ellipse. Dim x As Integer = 0 Dim y As Integer = 0 Dim width As Integer = 100 Dim height As Integer = 200 ' Create start and sweep angles on ellipse. Dim startAngle As Integer = 45 Dim sweepAngle As Integer = 270 ' Draw arc to screen. e.Graphics.DrawArc(blackPen, x, y, width, height, startAngle, _ sweepAngle) End Sub
public void DrawArcInt(PaintEventArgs e) { // Create pen. Pen blackPen= new Pen(Color.Black, 3); // Create coordinates of rectangle to bound ellipse. int x = 0; int y = 0; int width = 100; int height = 200; // Create start and sweep angles on ellipse. int startAngle = 45; int sweepAngle = 270; // Draw arc to screen. e.Graphics.DrawArc(blackPen, x, y, width, height, startAngle, sweepAngle); }
public: void DrawArcInt( PaintEventArgs^ e ) { // Create pen. Pen^ blackPen = gcnew Pen( Color::Black,3.0f ); // Create coordinates of rectangle to bound ellipse. int x = 0; int y = 0; int width = 100; int height = 200; // Create start and sweep angles on ellipse. int startAngle = 45; int sweepAngle = 270; // Draw arc to screen. e->Graphics->DrawArc( blackPen, x, y, width, height, 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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

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