Graphics.FillClosedCurve Graphics.FillClosedCurve Graphics.FillClosedCurve Method

정의

Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures.

오버로드

FillClosedCurve(Brush, Point[]) FillClosedCurve(Brush, Point[]) FillClosedCurve(Brush, Point[])

Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures.

FillClosedCurve(Brush, PointF[]) FillClosedCurve(Brush, PointF[]) FillClosedCurve(Brush, PointF[])

PointF 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.

FillClosedCurve(Brush, Point[], FillMode) FillClosedCurve(Brush, Point[], FillMode) FillClosedCurve(Brush, Point[], FillMode)

지정된 채우기 모드를 사용하여 Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.

FillClosedCurve(Brush, PointF[], FillMode) FillClosedCurve(Brush, PointF[], FillMode) FillClosedCurve(Brush, PointF[], FillMode)

지정된 채우기 모드를 사용하여 PointF 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode.

FillClosedCurve(Brush, Point[], FillMode, Single) FillClosedCurve(Brush, Point[], FillMode, Single) FillClosedCurve(Brush, Point[], FillMode, Single)

지정된 채우기 모드와 장력을 사용하여 Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode and tension.

FillClosedCurve(Brush, PointF[], FillMode, Single) FillClosedCurve(Brush, PointF[], FillMode, Single) FillClosedCurve(Brush, PointF[], FillMode, Single)

지정된 채우기 모드와 장력을 사용하여 PointF 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.

FillClosedCurve(Brush, Point[]) FillClosedCurve(Brush, Point[]) FillClosedCurve(Brush, Point[])

Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures.

public:
 void FillClosedCurve(System::Drawing::Brush ^ brush, cli::array <System::Drawing::Point> ^ points);
public void FillClosedCurve (System.Drawing.Brush brush, System.Drawing.Point[] points);
member this.FillClosedCurve : System.Drawing.Brush * System.Drawing.Point[] -> unit

매개 변수

brush
Brush Brush Brush

채우기의 특징을 결정하는 Brush입니다.Brush that determines the characteristics of the fill.

points
Point[]

스플라인을 정의하는 Point 구조체의 배열입니다.Array of Point structures that define the spline.

예외

brushnull인 경우brush is null.

또는-or- pointsnull인 경우points is null.

예제

다음 코드 예제는 Windows Forms에서 사용 하도록 설계 되었으며 필요 PaintEventArgs e의 매개 변수는 Paint 이벤트 처리기입니다.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. 이 코드에서는 다음 작업을 수행합니다.The code performs the following actions:

  • 빨간색 단색 브러시를 만듭니다.Creates a solid red brush.

  • 스플라인을 정의 4 개 요소의 배열을 만듭니다.Creates an array of four points to define a spline.

  • 화면에 곡선을 채웁니다.Fills the curve on the screen.

곡선에 있는 기본 장력 0.5입니다.The curve has a default tension of 0.5.

public:
   void FillClosedCurvePoint( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      //Create array of points for curve.
      Point point1 = Point(100,100);
      Point point2 = Point(200,50);
      Point point3 = Point(250,200);
      Point point4 = Point(50,150);
      array<Point>^ points = {point1,point2,point3,point4};

      // Fill curve on screen.
      e->Graphics->FillClosedCurve( redBrush, points );
   }
public void FillClosedCurvePoint(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    //Create array of points for curve.
    Point point1 = new Point(100, 100);
    Point point2 = new Point(200,  50);
    Point point3 = new Point(250, 200);
    Point point4 = new Point(50, 150);
    Point[] points = {point1, point2, point3, point4};
             
    // Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points);
}
Public Sub FillClosedCurvePoint(ByVal e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New SolidBrush(Color.Red)

    'Create array of points for curve.
    Dim point1 As New Point(100, 100)
    Dim point2 As New Point(200, 50)
    Dim point3 As New Point(250, 200)
    Dim point4 As New Point(50, 150)
    Dim points As Point() = {point1, point2, point3, point4}

    ' Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points)
End Sub

설명

이 메서드는 배열의 각 요소를 통과 하는 폐쇄형된 카디널 스플라인의 내부를 채웁니다.This method fills the interior of a closed cardinal spline that passes through each point in the array. 마지막 지점을 첫 번째 요소와 일치 하지 않는 경우 추가 곡선 세그먼트를 닫아야를 첫 번째 지점과 마지막 지점에서 추가 됩니다.If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.

점 배열에 4 개 이상 있어야 Point 구조입니다.The array of points must contain at least four Point structures.

이 메서드는 0.5의 기본 장력을 사용 합니다.This method uses a default tension of 0.5.

FillClosedCurve(Brush, PointF[]) FillClosedCurve(Brush, PointF[]) FillClosedCurve(Brush, PointF[])

PointF 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.

public:
 void FillClosedCurve(System::Drawing::Brush ^ brush, cli::array <System::Drawing::PointF> ^ points);
public void FillClosedCurve (System.Drawing.Brush brush, System.Drawing.PointF[] points);
member this.FillClosedCurve : System.Drawing.Brush * System.Drawing.PointF[] -> unit

매개 변수

brush
Brush Brush Brush

채우기의 특징을 결정하는 Brush입니다.Brush that determines the characteristics of the fill.

points
PointF[]

스플라인을 정의하는 PointF 구조체의 배열입니다.Array of PointF structures that define the spline.

예외

brushnull입니다.brush is null.

또는-or- pointsnull인 경우points is null.

예제

다음 코드 예제는 Windows Forms에서 사용 하도록 설계 되었으며 필요 PaintEventArgs e의 매개 변수는 Paint 이벤트 처리기입니다.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. 이 코드에서는 다음 작업을 수행합니다.The code performs the following actions:

  • 빨간색 단색 브러시를 만듭니다.Creates a solid red brush.

  • 스플라인을 정의 4 개 요소의 배열을 만듭니다.Creates an array of four points to define a spline.

  • 화면에 곡선을 채웁니다.Fills the curve on the screen.

곡선에 있는 기본 장력 0.5입니다.The curve has a default tension of 0.5.

public:
   void FillClosedCurvePointF( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      //Create array of points for curve.
      PointF point1 = PointF(100.0F,100.0F);
      PointF point2 = PointF(200.0F,50.0F);
      PointF point3 = PointF(250.0F,200.0F);
      PointF point4 = PointF(50.0F,150.0F);
      array<PointF>^ points = {point1,point2,point3,point4};

      // Fill curve on screen.
      e->Graphics->FillClosedCurve( redBrush, points );
   }
public void FillClosedCurvePointF(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    //Create array of points for curve.
    PointF point1 = new PointF(100.0F, 100.0F);
    PointF point2 = new PointF(200.0F,  50.0F);
    PointF point3 = new PointF(250.0F, 200.0F);
    PointF point4 = new PointF(50.0F, 150.0F);
    PointF[] points = {point1, point2, point3, point4};
             
    // Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points);
}
Public Sub FillClosedCurvePointF(ByVal e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New SolidBrush(Color.Red)

    'Create array of points for curve.
    Dim point1 As New PointF(100.0F, 100.0F)
    Dim point2 As New PointF(200.0F, 50.0F)
    Dim point3 As New PointF(250.0F, 200.0F)
    Dim point4 As New PointF(50.0F, 150.0F)
    Dim points As PointF() = {point1, point2, point3, point4}

    ' Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points)
End Sub

설명

이 메서드는 배열의 각 요소를 통과 하는 폐쇄형된 카디널 스플라인의 내부를 채웁니다.This method fills the interior of a closed cardinal spline that passes through each point in the array. 마지막 지점을 첫 번째 요소와 일치 하지 않는 경우 추가 곡선 세그먼트를 닫아야를 첫 번째 지점과 마지막 지점에서 추가 됩니다.If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.

점 배열에 4 개 이상 있어야 PointF 구조입니다.The array of points must contain at least four PointF structures.

이 메서드는 0.5의 기본 장력을 사용 합니다.This method uses a default tension of 0.5.

FillClosedCurve(Brush, Point[], FillMode) FillClosedCurve(Brush, Point[], FillMode) FillClosedCurve(Brush, Point[], FillMode)

지정된 채우기 모드를 사용하여 Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.

public:
 void FillClosedCurve(System::Drawing::Brush ^ brush, cli::array <System::Drawing::Point> ^ points, System::Drawing::Drawing2D::FillMode fillmode);
public void FillClosedCurve (System.Drawing.Brush brush, System.Drawing.Point[] points, System.Drawing.Drawing2D.FillMode fillmode);
member this.FillClosedCurve : System.Drawing.Brush * System.Drawing.Point[] * System.Drawing.Drawing2D.FillMode -> unit

매개 변수

brush
Brush Brush Brush

채우기의 특징을 결정하는 Brush입니다.Brush that determines the characteristics of the fill.

points
Point[]

스플라인을 정의하는 Point 구조체의 배열입니다.Array of Point structures that define the spline.

fillmode
FillMode FillMode FillMode

곡선이 채워지는 방법을 결정하는 FillMode 열거형의 멤버입니다.Member of the FillMode enumeration that determines how the curve is filled.

예외

brushnull입니다.brush is null.

또는-or- pointsnull입니다.points is null.

예제

다음 코드 예제는 Windows Forms에서 사용 하도록 설계 되었으며 필요 PaintEventArgs e의 매개 변수는 Paint 이벤트 처리기입니다.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. 이 코드에서는 다음 작업을 수행합니다.The code performs the following actions:

  • 빨간색 단색 브러시를 만듭니다.Creates a solid red brush.

  • 스플라인을 정의 4 개 요소의 배열을 만듭니다.Creates an array of four points to define a spline.

  • 채우기 모드를 설정 Winding합니다.Sets the fill mode to Winding.

  • 화면에 곡선을 채웁니다.Fills the curve on the screen.

곡선에 있는 기본 장력 0.5입니다.The curve has a default tension of 0.5.

public:
   void FillClosedCurvePointFillMode( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      //Create array of points for curve.
      Point point1 = Point(100,100);
      Point point2 = Point(200,50);
      Point point3 = Point(250,200);
      Point point4 = Point(50,150);
      array<Point>^ points = {point1,point2,point3,point4};

      // Set fill mode.
      FillMode newFillMode = FillMode::Winding;

      // Fill curve on screen.
      e->Graphics->FillClosedCurve( redBrush, points, newFillMode );
   }
public void FillClosedCurvePointFillMode(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    //Create array of points for curve.
    Point point1 = new Point(100, 100);
    Point point2 = new Point(200,  50);
    Point point3 = new Point(250, 200);
    Point point4 = new Point(50, 150);
    Point[] points = {point1, point2, point3, point4};
             
    // Set fill mode.
    FillMode newFillMode = FillMode.Winding;
             
    // Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode);
}
Public Sub FillClosedCurvePointFillMode(ByVal e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New SolidBrush(Color.Red)

    'Create array of points for curve.
    Dim point1 As New Point(100, 100)
    Dim point2 As New Point(200, 50)
    Dim point3 As New Point(250, 200)
    Dim point4 As New Point(50, 150)
    Dim points As Point() = {point1, point2, point3, point4}

    ' Set fill mode.
    Dim newFillMode As FillMode = FillMode.Winding

    ' Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode)
End Sub

설명

이 메서드는 배열의 각 요소를 통과 하는 폐쇄형된 카디널 스플라인의 내부를 채웁니다.This method fills the interior of a closed cardinal spline that passes through each point in the array. 마지막 지점을 첫 번째 요소와 일치 하지 않는 경우 추가 곡선 세그먼트를 닫아야를 첫 번째 지점과 마지막 지점에서 추가 됩니다.If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.

점 배열에 4 개 이상 있어야 Point 구조입니다.The array of points must contain at least four Point structures.

이 메서드는 0.5의 기본 장력을 사용 합니다.This method uses a default tension of 0.5.

FillClosedCurve(Brush, PointF[], FillMode) FillClosedCurve(Brush, PointF[], FillMode) FillClosedCurve(Brush, PointF[], FillMode)

지정된 채우기 모드를 사용하여 PointF 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode.

public:
 void FillClosedCurve(System::Drawing::Brush ^ brush, cli::array <System::Drawing::PointF> ^ points, System::Drawing::Drawing2D::FillMode fillmode);
public void FillClosedCurve (System.Drawing.Brush brush, System.Drawing.PointF[] points, System.Drawing.Drawing2D.FillMode fillmode);
member this.FillClosedCurve : System.Drawing.Brush * System.Drawing.PointF[] * System.Drawing.Drawing2D.FillMode -> unit

매개 변수

brush
Brush Brush Brush

채우기의 특징을 결정하는 Brush입니다.Brush that determines the characteristics of the fill.

points
PointF[]

스플라인을 정의하는 PointF 구조체의 배열입니다.Array of PointF structures that define the spline.

fillmode
FillMode FillMode FillMode

곡선이 채워지는 방법을 결정하는 FillMode 열거형의 멤버입니다.Member of the FillMode enumeration that determines how the curve is filled.

예외

brushnull입니다.brush is null.

또는-or- pointsnull인 경우points is null.

예제

다음 코드 예제는 Windows Forms에서 사용 하도록 설계 되었으며 필요 PaintEventArgs e의 매개 변수는 Paint 이벤트 처리기입니다.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. 이 코드에서는 다음 작업을 수행합니다.The code performs the following actions:

  • 빨간색 단색 브러시를 만듭니다.Creates a solid red brush.

  • 스플라인을 정의 4 개 요소의 배열을 만듭니다.Creates an array of four points to define a spline.

  • 채우기 모드를 설정 Winding합니다.Sets the fill mode to Winding.

  • 화면에 곡선을 채웁니다.Fills the curve on the screen.

곡선에 있는 기본 장력 0.5입니다.The curve has a default tension of 0.5.

public:
   void FillClosedCurvePointFFillMode( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create array of points for curve.
      PointF point1 = PointF(100.0F,100.0F);
      PointF point2 = PointF(200.0F,50.0F);
      PointF point3 = PointF(250.0F,200.0F);
      PointF point4 = PointF(50.0F,150.0F);
      array<PointF>^ points = {point1,point2,point3,point4};

      // Set fill mode.
      FillMode newFillMode = FillMode::Winding;

      // Fill curve on screen.
      e->Graphics->FillClosedCurve( redBrush, points, newFillMode );
   }
public void FillClosedCurvePointFFillMode(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create array of points for curve.
    PointF point1 = new PointF(100.0F, 100.0F);
    PointF point2 = new PointF(200.0F,  50.0F);
    PointF point3 = new PointF(250.0F, 200.0F);
    PointF point4 = new PointF(50.0F, 150.0F);
    PointF[] points = {point1, point2, point3, point4};
             
    // Set fill mode.
    FillMode newFillMode = FillMode.Winding;
             
    // Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode);
}
Public Sub FillClosedCurvePointFFillMode(ByVal e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New SolidBrush(Color.Red)

    ' Create array of points for curve.
    Dim point1 As New PointF(100.0F, 100.0F)
    Dim point2 As New PointF(200.0F, 50.0F)
    Dim point3 As New PointF(250.0F, 200.0F)
    Dim point4 As New PointF(50.0F, 150.0F)
    Dim points As PointF() = {point1, point2, point3, point4}

    ' Set fill mode.
    Dim newFillMode As FillMode = FillMode.Winding

    ' Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode)
End Sub

설명

이 메서드는 배열의 각 요소를 통과 하는 폐쇄형된 카디널 스플라인의 내부를 채웁니다.This method fills the interior of a closed cardinal spline that passes through each point in the array. 마지막 지점을 첫 번째 요소와 일치 하지 않는 경우 추가 곡선 세그먼트를 닫아야를 첫 번째 지점과 마지막 지점에서 추가 됩니다.If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.

점 배열에 4 개 이상 있어야 Point 구조입니다.The array of points must contain at least four Point structures.

이 메서드는 0.5의 기본 장력을 사용 합니다.This method uses a default tension of 0.5.

FillClosedCurve(Brush, Point[], FillMode, Single) FillClosedCurve(Brush, Point[], FillMode, Single) FillClosedCurve(Brush, Point[], FillMode, Single)

지정된 채우기 모드와 장력을 사용하여 Point 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode and tension.

public:
 void FillClosedCurve(System::Drawing::Brush ^ brush, cli::array <System::Drawing::Point> ^ points, System::Drawing::Drawing2D::FillMode fillmode, float tension);
public void FillClosedCurve (System.Drawing.Brush brush, System.Drawing.Point[] points, System.Drawing.Drawing2D.FillMode fillmode, float tension);
member this.FillClosedCurve : System.Drawing.Brush * System.Drawing.Point[] * System.Drawing.Drawing2D.FillMode * single -> unit

매개 변수

brush
Brush Brush Brush

채우기의 특징을 결정하는 Brush입니다.Brush that determines the characteristics of the fill.

points
Point[]

스플라인을 정의하는 Point 구조체의 배열입니다.Array of Point structures that define the spline.

fillmode
FillMode FillMode FillMode

곡선이 채워지는 방법을 결정하는 FillMode 열거형의 멤버입니다.Member of the FillMode enumeration that determines how the curve is filled.

tension
Single Single Single

곡선의 장력을 지정하는 0.0F 보다 크거나 같은 값입니다.Value greater than or equal to 0.0F that specifies the tension of the curve.

예외

brushnull인 경우brush is null.

또는-or- pointsnull인 경우points is null.

예제

다음 코드 예제는 Windows Forms에서 사용 하도록 설계 되었으며 필요 PaintEventArgs e의 매개 변수는 Paint 이벤트 처리기입니다.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. 이 코드에서는 다음 작업을 수행합니다.The code performs the following actions:

  • 빨간색 단색 브러시를 만듭니다.Creates a solid red brush.

  • 스플라인을 정의 4 개 요소의 배열을 만듭니다.Creates an array of four points to define a spline.

  • 채우기 모드를 설정 Winding합니다.Sets the fill mode to Winding.

  • 1.0 장력을 설정합니다.Sets the tension to 1.0.

  • 화면에 곡선을 채웁니다.Fills the curve on the screen.

public:
   void FillClosedCurvePointFillModeTension( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create array of points for curve.
      Point point1 = Point(100,100);
      Point point2 = Point(200,50);
      Point point3 = Point(250,200);
      Point point4 = Point(50,150);
      array<Point>^ points = {point1,point2,point3,point4};

      // Set fill mode.
      FillMode newFillMode = FillMode::Winding;

      // Set tension.
      float tension = 1.0F;

      // Fill curve on screen.
      e->Graphics->FillClosedCurve( redBrush, points, newFillMode, tension );
   }
public void FillClosedCurvePointFillModeTension(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create array of points for curve.
    Point point1 = new Point(100, 100);
    Point point2 = new Point(200,  50);
    Point point3 = new Point(250, 200);
    Point point4 = new Point(50, 150);
    Point[] points = {point1, point2, point3, point4};
             
    // Set fill mode.
    FillMode newFillMode = FillMode.Winding;
             
    // Set tension.
    float tension = 1.0F;
             
    // Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode, tension);
}
Public Sub FillClosedCurvePointFillModeTension(ByVal e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New SolidBrush(Color.Red)

    ' Create array of points for curve.
    Dim point1 As New Point(100, 100)
    Dim point2 As New Point(200, 50)
    Dim point3 As New Point(250, 200)
    Dim point4 As New Point(50, 150)
    Dim points As Point() = {point1, point2, point3, point4}

    ' Set fill mode.
    Dim newFillMode As FillMode = FillMode.Winding

    ' Set tension.
    Dim tension As Single = 1.0F

    ' Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode, tension)
End Sub

설명

이 메서드는 배열의 각 요소를 통과 하는 폐쇄형된 카디널 스플라인의 내부를 채웁니다.This method fills the interior of a closed cardinal spline that passes through each point in the array. 마지막 지점을 첫 번째 요소와 일치 하지 않는 경우 추가 곡선 세그먼트를 닫아야를 첫 번째 지점과 마지막 지점에서 추가 됩니다.If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.

점 배열에 4 개 이상 있어야 Point 구조입니다.The array of points must contain at least four Point structures.

tension 매개 변수는 스플라인의 모양을 결정 합니다.The tension parameter determines the shape of the spline. 경우 값은 tension 매개 변수는 0.0F,이 메서드는 요소를 연결 하려면 직선 세그먼트를 그립니다.If the value of the tension parameter is 0.0F, this method draws straight line segments to connect the points. 일반적으로 tension 매개 변수 보다 작거나 1.0F로는 합니다.Usually, the tension parameter is less than or equal to 1.0F. 1.0F 값 이상한 결과 생성합니다.Values over 1.0F produce unusual results.

FillClosedCurve(Brush, PointF[], FillMode, Single) FillClosedCurve(Brush, PointF[], FillMode, Single) FillClosedCurve(Brush, PointF[], FillMode, Single)

지정된 채우기 모드와 장력을 사용하여 PointF 구조체의 배열로 정의된 닫힌 카디널 스플라인 곡선의 내부를 채웁니다.Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.

public:
 void FillClosedCurve(System::Drawing::Brush ^ brush, cli::array <System::Drawing::PointF> ^ points, System::Drawing::Drawing2D::FillMode fillmode, float tension);
public void FillClosedCurve (System.Drawing.Brush brush, System.Drawing.PointF[] points, System.Drawing.Drawing2D.FillMode fillmode, float tension);
member this.FillClosedCurve : System.Drawing.Brush * System.Drawing.PointF[] * System.Drawing.Drawing2D.FillMode * single -> unit

매개 변수

brush
Brush Brush Brush

채우기의 특징을 결정하는 Brush입니다.A Brush that determines the characteristics of the fill.

points
PointF[]

스플라인을 정의하는 PointF 구조체의 배열입니다.Array of PointF structures that define the spline.

fillmode
FillMode FillMode FillMode

곡선이 채워지는 방법을 결정하는 FillMode 열거형의 멤버입니다.Member of the FillMode enumeration that determines how the curve is filled.

tension
Single Single Single

곡선의 장력을 지정하는 0.0F 보다 크거나 같은 값입니다.Value greater than or equal to 0.0F that specifies the tension of the curve.

예외

brushnull입니다.brush is null.

또는-or- pointsnull입니다.points is null.

예제

다음 코드 예제는 Windows Forms에서 사용 하도록 설계 되었으며 필요 PaintEventArgs e의 매개 변수는 Paint 이벤트 처리기입니다.The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, which is a parameter of the Paint event handler. 이 코드에서는 다음 작업을 수행합니다.The code performs the following actions:

  • 빨간색 단색 브러시를 만듭니다.Creates a solid red brush.

  • 스플라인을 정의 4 개 요소의 배열을 만듭니다.Creates an array of four points to define a spline.

  • 채우기 모드를 설정 Winding합니다.Sets the fill mode to Winding.

  • 1.0 장력을 설정합니다.Sets the tension to 1.0.

  • 화면에 곡선을 채웁니다.Fills the curve on the screen.

public:
   void FillClosedCurvePointFFillModeTension( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create array of points for curve.
      PointF point1 = PointF(100.0F,100.0F);
      PointF point2 = PointF(200.0F,50.0F);
      PointF point3 = PointF(250.0F,200.0F);
      PointF point4 = PointF(50.0F,150.0F);
      array<PointF>^ points = {point1,point2,point3,point4};

      // Set fill mode.
      FillMode newFillMode = FillMode::Winding;

      // Set tension.
      float tension = 1.0F;

      // Fill curve on screen.
      e->Graphics->FillClosedCurve( redBrush, points, newFillMode, tension );
   }
public void FillClosedCurvePointFFillModeTension(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create array of points for curve.
    PointF point1 = new PointF(100.0F, 100.0F);
    PointF point2 = new PointF(200.0F,  50.0F);
    PointF point3 = new PointF(250.0F, 200.0F);
    PointF point4 = new PointF(50.0F, 150.0F);
    PointF[] points = {point1, point2, point3, point4};
             
    // Set fill mode.
    FillMode newFillMode = FillMode.Winding;
             
    // Set tension.
    float tension = 1.0F;
             
    // Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode, tension);
}
Public Sub FillClosedCurvePointFFillModeTension(ByVal e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New SolidBrush(Color.Red)

    ' Create array of points for curve.
    Dim point1 As New PointF(100.0F, 100.0F)
    Dim point2 As New PointF(200.0F, 50.0F)
    Dim point3 As New PointF(250.0F, 200.0F)
    Dim point4 As New PointF(50.0F, 150.0F)
    Dim points As PointF() = {point1, point2, point3, point4}

    ' Set fill mode.
    Dim newFillMode As FillMode = FillMode.Winding

    ' Set tension.
    Dim tension As Single = 1.0F

    ' Fill curve on screen.
    e.Graphics.FillClosedCurve(redBrush, points, newFillMode, tension)
End Sub

설명

이 메서드는 배열의 각 요소를 통과 하는 폐쇄형된 카디널 스플라인의 내부를 채웁니다.This method fills the interior of a closed cardinal spline that passes through each point in the array. 마지막 지점을 첫 번째 요소와 일치 하지 않는 경우 추가 곡선 세그먼트를 닫아야를 첫 번째 지점과 마지막 지점에서 추가 됩니다.If the last point does not match the first point, an additional curve segment is added from the last point to the first point to close it.

점 배열에 4 개 이상 있어야 Point 구조입니다.The array of points must contain at least four Point structures.

tension 매개 변수는 스플라인의 모양을 결정 합니다.The tension parameter determines the shape of the spline. 경우 값은 tension 매개 변수는 0.0F,이 메서드는 요소를 연결 하려면 직선 세그먼트를 그립니다.If the value of the tension parameter is 0.0F, this method draws straight line segments to connect the points. 일반적으로 tension 매개 변수 보다 작거나 1.0F로는 합니다.Usually, the tension parameter is less than or equal to 1.0F. 1.0F 값 이상한 결과 생성합니다.Values over 1.0F produce unusual results.

적용 대상