GraphicsPath.AddClosedCurve 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다.
오버로드
AddClosedCurve(Point[]) |
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다. |
AddClosedCurve(PointF[]) |
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다. |
AddClosedCurve(ReadOnlySpan<Point>) | |
AddClosedCurve(ReadOnlySpan<PointF>) | |
AddClosedCurve(Point[], Single) |
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다. |
AddClosedCurve(PointF[], Single) |
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다. |
AddClosedCurve(ReadOnlySpan<Point>, Single) | |
AddClosedCurve(ReadOnlySpan<PointF>, Single) |
AddClosedCurve(Point[])
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다.
public:
void AddClosedCurve(cli::array <System::Drawing::Point> ^ points);
public:
void AddClosedCurve(... cli::array <System::Drawing::Point> ^ points);
public void AddClosedCurve (System.Drawing.Point[] points);
public void AddClosedCurve (params System.Drawing.Point[] points);
member this.AddClosedCurve : System.Drawing.Point[] -> unit
Public Sub AddClosedCurve (points As Point())
Public Sub AddClosedCurve (ParamArray points As Point())
매개 변수
예제
예제를 보려면 AddClosedCurve(Point[], Single)를 참조하세요.
설명
필요한 경우 사용자는 원래 지점을 유지해야 합니다. 원래 지점은 내부적으로 입방형 베지어 제어점으로 변환되므로 원래 점을 반환하는 메커니즘이 없습니다. 배열의 첫 번째 점과 마지막 점 points
이 같은 점이 아닌 경우 이 두 점을 연결하여 곡선이 닫힙니다. 이 메서드에 대해 장력 값을 설정할 수 없으며 기본값은 0.5에 해당하는 값으로 설정됩니다.
적용 대상
AddClosedCurve(PointF[])
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다.
public:
void AddClosedCurve(cli::array <System::Drawing::PointF> ^ points);
public:
void AddClosedCurve(... cli::array <System::Drawing::PointF> ^ points);
public void AddClosedCurve (System.Drawing.PointF[] points);
public void AddClosedCurve (params System.Drawing.PointF[] points);
member this.AddClosedCurve : System.Drawing.PointF[] -> unit
Public Sub AddClosedCurve (points As PointF())
Public Sub AddClosedCurve (ParamArray points As PointF())
매개 변수
예제
예제를 보려면 AddClosedCurve(Point[], Single)를 참조하세요.
설명
필요한 경우 사용자는 원래 지점을 유지해야 합니다. 원래 지점은 내부적으로 입방형 베지어 제어점으로 변환되므로 원래 점을 반환하는 메커니즘이 없습니다. 배열의 첫 번째 점과 마지막 점 points
이 같은 점이 아닌 경우 이 두 점을 연결하여 곡선이 닫힙니다. 이 메서드에 대해 장력 값을 설정할 수 없으며 기본값은 0.5에 해당하는 값으로 설정됩니다.
적용 대상
AddClosedCurve(ReadOnlySpan<Point>)
- Source:
- GraphicsPath.cs
public:
void AddClosedCurve(ReadOnlySpan<System::Drawing::Point> points);
public void AddClosedCurve (ReadOnlySpan<System.Drawing.Point> points);
member this.AddClosedCurve : ReadOnlySpan<System.Drawing.Point> -> unit
Public Sub AddClosedCurve (points As ReadOnlySpan(Of Point))
매개 변수
- points
- ReadOnlySpan<Point>
적용 대상
AddClosedCurve(ReadOnlySpan<PointF>)
- Source:
- GraphicsPath.cs
public:
void AddClosedCurve(ReadOnlySpan<System::Drawing::PointF> points);
public void AddClosedCurve (ReadOnlySpan<System.Drawing.PointF> points);
member this.AddClosedCurve : ReadOnlySpan<System.Drawing.PointF> -> unit
Public Sub AddClosedCurve (points As ReadOnlySpan(Of PointF))
매개 변수
- points
- ReadOnlySpan<PointF>
적용 대상
AddClosedCurve(Point[], Single)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다.
public:
void AddClosedCurve(cli::array <System::Drawing::Point> ^ points, float tension);
public void AddClosedCurve (System.Drawing.Point[] points, float tension);
member this.AddClosedCurve : System.Drawing.Point[] * single -> unit
Public Sub AddClosedCurve (points As Point(), tension As Single)
매개 변수
- tension
- Single
지점들 사이에서 곡률을 지정하는 0에서 1 사이의 값으로, 0 값에 가까울수록 각지고 1에 가까울수록 완만합니다.
예제
다음 코드 예제는 Windows Forms 사용하도록 설계되었으며 이벤트 개체인 가 OnPaint 필요합니다PaintEventArgse
. 코드는 다음 작업을 수행합니다.
카디널 스플라인을 나타내는 6개의 점 배열을 만듭니다.
경로를 만들고 닫힌 카디널 스플라인 곡선을 경로에 추가합니다(엔드포인트에서 시작 지점까지 닫힘).
화면의 경로를 그립니다.
0.5의 장력이 사용됩니다.
private:
void AddClosedCurveExample( PaintEventArgs^ e )
{
// Creates a symetrical, closed curve.
array<Point>^ myArray = {Point(20,100),Point(40,150),Point(60,125),Point(40,100),Point(60,75),Point(40,50)};
// Create a new path and add curve.
GraphicsPath^ myPath = gcnew GraphicsPath;
myPath->AddClosedCurve( myArray, .5f );
Pen^ myPen = gcnew Pen( Color::Black,2.0f );
// Draw the path to screen.
e->Graphics->DrawPath( myPen, myPath );
}
private void AddClosedCurveExample(PaintEventArgs e)
{
// Creates a symmetrical, closed curve.
Point[] myArray =
{
new Point(20,100),
new Point(40,150),
new Point(60,125),
new Point(40,100),
new Point(60,75),
new Point(40,50)
};
// Create a new path and add curve.
GraphicsPath myPath = new GraphicsPath();
myPath.AddClosedCurve(myArray,.5f);
Pen myPen = new Pen(Color.Black, 2);
// Draw the path to screen.
e.Graphics.DrawPath(myPen, myPath);
}
Public Sub AddClosedCurveExample(ByVal e As PaintEventArgs)
' Creates a symmetrical, closed curve.
Dim myArray As Point() = {New Point(20, 100), New Point(40, 150), _
New Point(60, 125), New Point(40, 100), New Point(60, 75), _
New Point(40, 50)}
Dim myPath As New GraphicsPath
myPath.AddClosedCurve(myArray, 0.5F)
Dim myPen As New Pen(Color.Black, 2)
e.Graphics.DrawPath(myPen, myPath)
End Sub
설명
필요한 경우 사용자는 원래 지점을 유지해야 합니다. 원래 지점은 내부적으로 입방형 베지어 제어점으로 변환되므로 원래 점을 반환하는 메커니즘이 없습니다. 배열의 첫 번째 점과 마지막 점 points
이 같은 점이 아닌 경우 이 두 점을 연결하여 곡선이 닫힙니다.
적용 대상
AddClosedCurve(PointF[], Single)
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
- Source:
- GraphicsPath.cs
닫힌 곡선을 이 경로에 추가합니다. 곡선이 배열에 있는 각 지점을 모두 지나므로 카디널 스플라인 곡선이 사용됩니다.
public:
void AddClosedCurve(cli::array <System::Drawing::PointF> ^ points, float tension);
public void AddClosedCurve (System.Drawing.PointF[] points, float tension);
member this.AddClosedCurve : System.Drawing.PointF[] * single -> unit
Public Sub AddClosedCurve (points As PointF(), tension As Single)
매개 변수
- tension
- Single
지점들 사이에서 곡률을 지정하는 0에서 1 사이의 값으로, 0 값에 가까울수록 각지고 1에 가까울수록 완만합니다.
예제
예제를 보려면 AddClosedCurve(Point[], Single)를 참조하세요.
설명
필요한 경우 사용자는 원래 지점을 유지해야 합니다. 원래 지점은 내부적으로 입방형 베지어 제어점으로 변환되므로 원래 점을 반환하는 메커니즘이 없습니다. 배열의 첫 번째 점과 마지막 점 points
이 같은 점이 아닌 경우 이 두 점을 연결하여 곡선이 닫힙니다.
적용 대상
AddClosedCurve(ReadOnlySpan<Point>, Single)
- Source:
- GraphicsPath.cs
public:
void AddClosedCurve(ReadOnlySpan<System::Drawing::Point> points, float tension);
public void AddClosedCurve (ReadOnlySpan<System.Drawing.Point> points, float tension);
member this.AddClosedCurve : ReadOnlySpan<System.Drawing.Point> * single -> unit
Public Sub AddClosedCurve (points As ReadOnlySpan(Of Point), tension As Single)
매개 변수
- points
- ReadOnlySpan<Point>
- tension
- Single
적용 대상
AddClosedCurve(ReadOnlySpan<PointF>, Single)
- Source:
- GraphicsPath.cs
public:
void AddClosedCurve(ReadOnlySpan<System::Drawing::PointF> points, float tension);
public void AddClosedCurve (ReadOnlySpan<System.Drawing.PointF> points, float tension);
member this.AddClosedCurve : ReadOnlySpan<System.Drawing.PointF> * single -> unit
Public Sub AddClosedCurve (points As ReadOnlySpan(Of PointF), tension As Single)
매개 변수
- points
- ReadOnlySpan<PointF>
- tension
- Single
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기