GraphicsPath.AddArcとは? わかりやすく解説

GraphicsPath.AddArc メソッド (Single, Single, Single, Single, Single, Single)

現在の図形楕円円弧追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub AddArc ( _
    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.AddArc(x, y, width, height, startAngle, sweepAngle)
public void AddArc (
    float x,
    float y,
    float width,
    float height,
    float startAngle,
    float sweepAngle
)
public:
void AddArc (
    float x, 
    float y, 
    float width, 
    float height, 
    float startAngle, 
    float sweepAngle
)
public void AddArc (
    float x, 
    float y, 
    float width, 
    float height, 
    float startAngle, 
    float sweepAngle
)
public function AddArc (
    x : float, 
    y : float, 
    width : float, 
    height : float, 
    startAngle : float, 
    sweepAngle : float
)

パラメータ

x

円弧描画元となる楕円定義する四角形領域左上隅の x 座標

y

円弧描画元となる楕円定義する四角形領域左上隅の y 座標

width

円弧描画元となる楕円定義する四角形領域の幅。

height

円弧描画元となる楕円定義する四角形領域の高さ。

startAngle

x 軸から時計回り測定した円弧開始角度

sweepAngle

startAngle円弧終端との間の角度

解説解説
使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddArc メソッド (RectangleF, Single, Single)

現在の図形楕円円弧追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub AddArc ( _
    rect As RectangleF, _
    startAngle As Single, _
    sweepAngle As Single _
)
Dim instance As GraphicsPath
Dim rect As RectangleF
Dim startAngle As Single
Dim sweepAngle As Single

instance.AddArc(rect, startAngle, sweepAngle)
public void AddArc (
    RectangleF rect,
    float startAngle,
    float sweepAngle
)
public:
void AddArc (
    RectangleF rect, 
    float startAngle, 
    float sweepAngle
)
public void AddArc (
    RectangleF rect, 
    float startAngle, 
    float sweepAngle
)
public function AddArc (
    rect : RectangleF, 
    startAngle : float, 
    sweepAngle : float
)

パラメータ

rect

円弧元になる楕円外接四角形を表す RectangleF。

startAngle

x 軸から時計回り測定した円弧開始角度

sweepAngle

startAngle円弧終端との間の角度

解説解説
使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddArc メソッド (Rectangle, Single, Single)

現在の図形楕円円弧追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub AddArc ( _
    rect As Rectangle, _
    startAngle As Single, _
    sweepAngle As Single _
)
Dim instance As GraphicsPath
Dim rect As Rectangle
Dim startAngle As Single
Dim sweepAngle As Single

instance.AddArc(rect, startAngle, sweepAngle)
public void AddArc (
    Rectangle rect,
    float startAngle,
    float sweepAngle
)
public:
void AddArc (
    Rectangle rect, 
    float startAngle, 
    float sweepAngle
)
public void AddArc (
    Rectangle rect, 
    float startAngle, 
    float sweepAngle
)
public function AddArc (
    rect : Rectangle, 
    startAngle : float, 
    sweepAngle : float
)

パラメータ

rect

円弧元になる楕円外接四角形を表す Rectangle

startAngle

x 軸から時計回り測定した円弧開始角度

sweepAngle

startAngle円弧終端との間の角度

解説解説
使用例使用例

次のコード例は、Windows フォームでの使用意図してデザインされており、OnPaint イベント オブジェクトである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub AddArcExample(ByVal
 e As PaintEventArgs)

    ' Create a GraphicsPath object.
    Dim myPath As New GraphicsPath

    ' Set up and call AddArc, and close the figure.
    Dim rect As New Rectangle(20,
 20, 50, 100)
    myPath.StartFigure()
    myPath.AddArc(rect, 0, 180)
    myPath.CloseFigure()

    ' Draw the path to screen.
    e.Graphics.DrawPath(New Pen(Color.Red, 3), myPath)
End Sub
private void AddArcExample(PaintEventArgs e)
{
             
    // Create a GraphicsPath object.
    GraphicsPath myPath = new GraphicsPath();
             
    // Set up and call AddArc, and close the figure.
    Rectangle rect = new Rectangle(20, 20, 50, 100);
    myPath.StartFigure();
    myPath.AddArc(rect, 0, 180);
    myPath.CloseFigure();
             
    // Draw the path to screen.
    e.Graphics.DrawPath(new Pen(Color.Red, 3), myPath);
}
private:
   void AddArcExample( PaintEventArgs^ e )
   {
      // Create a GraphicsPath object.
      GraphicsPath^ myPath = gcnew GraphicsPath;

      // Set up and call AddArc, and close the figure.
      Rectangle rect = Rectangle(20,20,50,100);
      myPath->StartFigure();
      myPath->AddArc( rect, 0, 180 );
      myPath->CloseFigure();

      // Draw the path to screen.
      e->Graphics->DrawPath( gcnew Pen( Color::Red,3.0f ), myPath );
   }
private void AddArcExample(PaintEventArgs e)
{
    // Create a GraphicsPath object.
    GraphicsPath myPath = new GraphicsPath();

    // Set up and call AddArc, and close the figure.
    Rectangle rect = new Rectangle(20, 20, 50, 100);

    myPath.StartFigure();
    myPath.AddArc(rect, 0, 180);
    myPath.CloseFigure();

    // Draw the path to screen.
    e.get_Graphics().DrawPath(new Pen(Color.get_Red(), 3), myPath);
} //AddArcExample
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddArc メソッド (Int32, Int32, Int32, Int32, Single, Single)

現在の図形楕円円弧追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub AddArc ( _
    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.AddArc(x, y, width, height, startAngle, sweepAngle)
public void AddArc (
    int x,
    int y,
    int width,
    int height,
    float startAngle,
    float sweepAngle
)
public:
void AddArc (
    int x, 
    int y, 
    int width, 
    int height, 
    float startAngle, 
    float sweepAngle
)
public void AddArc (
    int x, 
    int y, 
    int width, 
    int height, 
    float startAngle, 
    float sweepAngle
)
public function AddArc (
    x : int, 
    y : int, 
    width : int, 
    height : int, 
    startAngle : float, 
    sweepAngle : float
)

パラメータ

x

円弧描画元となる楕円定義する四角形領域左上隅の x 座標

y

円弧描画元となる楕円定義する四角形領域左上隅の y 座標

width

円弧描画元となる楕円定義する四角形領域の幅。

height

円弧描画元となる楕円定義する四角形領域の高さ。

startAngle

x 軸から時計回り測定した円弧開始角度

sweepAngle

startAngle円弧終端との間の角度

解説解説
使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddArc メソッド

現在の図形楕円円弧追加します
オーバーロードの一覧オーバーロードの一覧

名前 説明
GraphicsPath.AddArc (Rectangle, Single, Single) 現在の図形楕円円弧追加します
GraphicsPath.AddArc (RectangleF, Single, Single) 現在の図形楕円円弧追加します
GraphicsPath.AddArc (Int32, Int32, Int32, Int32, Single, Single) 現在の図形楕円円弧追加します
GraphicsPath.AddArc (Single, Single, Single, Single, Single, Single) 現在の図形楕円円弧追加します
参照参照

関連項目

GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「GraphicsPath.AddArc」の関連用語

GraphicsPath.AddArcのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



GraphicsPath.AddArcのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS