GraphicsPath.AddPie メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > GraphicsPath.AddPie メソッドの意味・解説 

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

パス扇形アウトライン追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: 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
)

パラメータ

x

扇形描画元となる楕円定義する外接する四角形左上隅の x 座標

y

扇形描画元となる楕円定義する外接する四角形左上隅の y 座標

width

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

height

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

startAngle

x 軸から時計回り測定した扇型部分開始角度

sweepAngle

startAngle から時計回り測定したstartAngle扇型部分終端との間の角度

解説解説
使用例使用例

例については、AddPie(Int32,Int32,Int32,Int32,Single,Single) のトピック参照してください

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

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

パス扇形アウトライン追加します

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

Public Sub AddPie ( _
    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.AddPie(rect, startAngle, sweepAngle)
public void AddPie (
    Rectangle rect,
    float startAngle,
    float sweepAngle
)
public:
void AddPie (
    Rectangle rect, 
    float startAngle, 
    float sweepAngle
)
public void AddPie (
    Rectangle rect, 
    float startAngle, 
    float sweepAngle
)
public function AddPie (
    rect : Rectangle, 
    startAngle : float, 
    sweepAngle : float
)

パラメータ

rect

扇形描画元になる楕円定義する外接する四角形を表す Rectangle

startAngle

x 軸から時計回り測定した扇型部分開始角度

sweepAngle

startAngle から時計回り測定したstartAngle扇型部分終端との間の角度

解説解説
使用例使用例

例については、AddPie(Int32,Int32,Int32,Int32,Single,Single) のトピック参照してください

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

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

パス扇形アウトライン追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: 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 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
)
public void AddPie (
    int x, 
    int y, 
    int width, 
    int height, 
    float startAngle, 
    float sweepAngle
)
public function AddPie (
    x : int, 
    y : int, 
    width : int, 
    height : int, 
    startAngle : float, 
    sweepAngle : float
)

パラメータ

x

扇形描画元となる楕円定義する外接する四角形左上隅の x 座標

y

扇形描画元となる楕円定義する外接する四角形左上隅の y 座標

width

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

height

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

startAngle

x 軸から時計回り測定した扇型部分開始角度

sweepAngle

startAngle から時計回り測定したstartAngle扇型部分終端との間の角度

解説解説
使用例使用例

次のコード例は、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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddPie メソッド

パス扇形アウトライン追加します
オーバーロードの一覧オーバーロードの一覧

名前 説明
GraphicsPath.AddPie (Rectangle, Single, Single) パス扇形アウトライン追加します
GraphicsPath.AddPie (Int32, Int32, Int32, Int32, Single, Single) パス扇形アウトライン追加します
GraphicsPath.AddPie (Single, Single, Single, Single, Single, Single) パス扇形アウトライン追加します
参照参照

関連項目

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



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

辞書ショートカット

すべての辞書の索引

GraphicsPath.AddPie メソッドのお隣キーワード
検索ランキング

   

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



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

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

©2024 GRAS Group, Inc.RSS