GraphicsPath.AddPie 메서드

정의

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

오버로드

AddPie(Rectangle, Single, Single)

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

AddPie(Int32, Int32, Int32, Int32, Single, Single)

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

AddPie(Single, Single, Single, Single, Single, Single)

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

AddPie(Rectangle, Single, Single)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

public:
 void AddPie(System::Drawing::Rectangle rect, float startAngle, float sweepAngle);
public void AddPie (System.Drawing.Rectangle rect, float startAngle, float sweepAngle);
member this.AddPie : System.Drawing.Rectangle * single * single -> unit
Public Sub AddPie (rect As Rectangle, startAngle As Single, sweepAngle As Single)

매개 변수

rect
Rectangle

부채꼴이 그려지는 타원을 정의하는 경계 사각형을 나타내는 Rectangle입니다.

startAngle
Single

X축에서 시계 방향으로 측정한 부채꼴의 시작 각도입니다.

sweepAngle
Single

startAngle과 부채꼴 끝 사이의 각도이며, startAngle에서 시계 방향으로 측정한 값입니다.

예제

예제를 보려면 AddPie(Int32, Int32, Int32, Int32, Single, Single)를 참조하세요.

설명

원형 모양은 타원의 부분 윤곽선과 부분 윤곽선의 끝점과 교차하는 두 개의 방사형 선으로 정의됩니다. 부분 윤곽선은 ( startAngle x축에서 시계 방향으로 측정됨)에서 시작하여 에서 startAngle + sweepAngle끝납니다.

적용 대상

AddPie(Int32, Int32, Int32, Int32, Single, Single)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

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);
member this.AddPie : int * int * int * int * single * single -> unit
Public Sub AddPie (x As Integer, y As Integer, width As Integer, height As Integer, startAngle As Single, sweepAngle As Single)

매개 변수

x
Int32

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 왼쪽 위 모퉁이에 대한 X좌표입니다.

y
Int32

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 왼쪽 위 모퉁이에 대한 Y좌표입니다.

width
Int32

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 너비입니다.

height
Int32

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 높이입니다.

startAngle
Single

X축에서 시계 방향으로 측정한 부채꼴의 시작 각도입니다.

sweepAngle
Single

startAngle과 부채꼴 끝 사이의 각도이며, startAngle에서 시계 방향으로 측정한 값입니다.

예제

다음 코드 예제는 Windows Forms 사용하도록 설계되었으며 이벤트 개체인 이 OnPaint 필요합니다PaintEventArgse. 코드는 그래픽 경로를 만들고 원형 도형을 추가한 다음 화면의 경로를 그립니다.

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.Black, 2);
    e.Graphics.DrawPath(myPen, myPath);
}
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

설명

원형 모양은 타원의 부분 윤곽선과 부분 윤곽선의 끝점과 교차하는 두 개의 방사형 선으로 정의됩니다. 부분 윤곽선은 ( startAngle x축에서 시계 방향으로 측정됨)에서 시작하여 에서 startAngle + sweepAngle끝납니다.

적용 대상

AddPie(Single, Single, Single, Single, Single, Single)

Source:
GraphicsPath.cs
Source:
GraphicsPath.cs
Source:
GraphicsPath.cs

이 경로에 부채꼴 모양의 윤곽선을 추가합니다.

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);
member this.AddPie : single * single * single * single * single * single -> unit
Public Sub AddPie (x As Single, y As Single, width As Single, height As Single, startAngle As Single, sweepAngle As Single)

매개 변수

x
Single

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 왼쪽 위 모퉁이에 대한 X좌표입니다.

y
Single

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 왼쪽 위 모퉁이에 대한 Y좌표입니다.

width
Single

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 너비입니다.

height
Single

부채꼴이 그려지는 타원을 정의하는 경계 사각형의 높이입니다.

startAngle
Single

X축에서 시계 방향으로 측정한 부채꼴의 시작 각도입니다.

sweepAngle
Single

startAngle과 부채꼴 끝 사이의 각도이며, startAngle에서 시계 방향으로 측정한 값입니다.

예제

예제를 보려면 AddPie(Int32, Int32, Int32, Int32, Single, Single)를 참조하세요.

설명

원형 모양은 타원의 부분 윤곽선과 부분 윤곽선의 끝점과 교차하는 두 개의 방사형 선으로 정의됩니다. 부분 윤곽선은 ( startAngle x축에서 시계 방향으로 측정됨)에서 시작하여 에서 startAngle + sweepAngle끝납니다.

적용 대상