GraphicsPath.Warp 메서드

정의

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

오버로드

Name Description
Warp(PointF[], RectangleF)

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

Warp(PointF[], RectangleF, Matrix)

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

Warp(PointF[], RectangleF, Matrix, WarpMode)

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

Warp(PointF[], RectangleF, Matrix, WarpMode, Single)

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

Warp(ReadOnlySpan<PointF>, RectangleF, Matrix, WarpMode, Single)

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

Warp(PointF[], RectangleF)

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

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

public:
 void Warp(cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect);
member this.Warp : System.Drawing.PointF[] * System.Drawing.RectangleF -> unit
Public Sub Warp (destPoints As PointF(), srcRect As RectangleF)

매개 변수

destPoints
PointF[]

정의된 PointF 사각형이 변환되는 병렬 프로그래밍을 정의하는 구조체의 배열 srcRect 입니다. 배열에는 3개 또는 4개의 요소가 포함될 수 있습니다. 배열에 세 개의 요소가 포함된 경우 병렬 프로그래밍의 오른쪽 아래 모서리는 처음 세 점에 의해 암시됩니다.

srcRect
RectangleF

에 의해 RectangleF정의된 병렬 변환으로 변환되는 사각형을 나타내는 A destPoints 입니다.

예제

예제를 보려면 Warp(PointF[], RectangleF, Matrix, WarpMode, Single)를 참조하세요.

적용 대상

Warp(PointF[], RectangleF, Matrix)

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

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

public:
 void Warp(cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect, System::Drawing::Drawing2D::Matrix ^ matrix);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix matrix);
member this.Warp : System.Drawing.PointF[] * System.Drawing.RectangleF * System.Drawing.Drawing2D.Matrix -> unit
Public Sub Warp (destPoints As PointF(), srcRect As RectangleF, matrix As Matrix)

매개 변수

destPoints
PointF[]

정의된 PointF 사각형이 변환되는 병렬 프로그래밍을 정의하는 구조체의 배열 srcRect 입니다. 배열에는 3개 또는 4개의 요소가 포함될 수 있습니다. 배열에 세 개의 요소가 포함된 경우 병렬 프로그래밍의 오른쪽 아래 모서리는 처음 세 점에 의해 암시됩니다.

srcRect
RectangleF

에 의해 RectangleF정의된 병렬 변환으로 변환되는 사각형을 나타내는 A destPoints 입니다.

matrix
Matrix

Matrix 경로에 적용할 기하학적 변환을 지정하는 A입니다.

예제

예제를 보려면 Warp(PointF[], RectangleF, Matrix, WarpMode, Single)를 참조하세요.

적용 대상

Warp(PointF[], RectangleF, Matrix, WarpMode)

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

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

public:
 void Warp(cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect, System::Drawing::Drawing2D::Matrix ^ matrix, System::Drawing::Drawing2D::WarpMode warpMode);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix, System.Drawing.Drawing2D.WarpMode warpMode);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.WarpMode warpMode);
member this.Warp : System.Drawing.PointF[] * System.Drawing.RectangleF * System.Drawing.Drawing2D.Matrix * System.Drawing.Drawing2D.WarpMode -> unit
Public Sub Warp (destPoints As PointF(), srcRect As RectangleF, matrix As Matrix, warpMode As WarpMode)

매개 변수

destPoints
PointF[]

정의된 PointF 사각형이 변환되는 병렬 프로그래밍을 정의하는 구조체의 배열 srcRect 입니다. 배열에는 3개 또는 4개의 요소가 포함될 수 있습니다. 배열에 세 개의 요소가 포함된 경우 병렬 프로그래밍의 오른쪽 아래 모서리는 처음 세 점에 의해 암시됩니다.

srcRect
RectangleF

에 의해 RectangleF정의된 병렬 변환으로 변환되는 사각형을 나타내는 A destPoints 입니다.

matrix
Matrix

Matrix 경로에 적용할 기하학적 변환을 지정하는 A입니다.

warpMode
WarpMode

WarpMode 이 워프 작업에서 큐브 뷰 또는 쌍선형 모드를 사용하는지 여부를 지정하는 열거형입니다.

예제

예제를 보려면 Warp(PointF[], RectangleF, Matrix, WarpMode, Single)를 참조하세요.

적용 대상

Warp(PointF[], RectangleF, Matrix, WarpMode, Single)

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

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

public:
 void Warp(cli::array <System::Drawing::PointF> ^ destPoints, System::Drawing::RectangleF srcRect, System::Drawing::Drawing2D::Matrix ^ matrix, System::Drawing::Drawing2D::WarpMode warpMode, float flatness);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix, System.Drawing.Drawing2D.WarpMode warpMode, float flatness);
public void Warp(System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix matrix, System.Drawing.Drawing2D.WarpMode warpMode, float flatness);
member this.Warp : System.Drawing.PointF[] * System.Drawing.RectangleF * System.Drawing.Drawing2D.Matrix * System.Drawing.Drawing2D.WarpMode * single -> unit
Public Sub Warp (destPoints As PointF(), srcRect As RectangleF, matrix As Matrix, warpMode As WarpMode, flatness As Single)

매개 변수

destPoints
PointF[]

정의된 PointF 사각형이 변환되는 병렬 프로그래밍을 정의하는 구조체의 배열 srcRect 입니다. 배열에는 3개 또는 4개의 요소가 포함될 수 있습니다. 배열에 세 개의 요소가 포함된 경우 병렬 프로그래밍의 오른쪽 아래 모서리는 처음 세 점에 의해 암시됩니다.

srcRect
RectangleF

에 의해 RectangleF정의된 병렬 변환으로 변환되는 사각형을 나타내는 A destPoints 입니다.

matrix
Matrix

Matrix 경로에 적용할 기하학적 변환을 지정하는 A입니다.

warpMode
WarpMode

WarpMode 이 워프 작업에서 큐브 뷰 또는 쌍선형 모드를 사용하는지 여부를 지정하는 열거형입니다.

flatness
Single

결과 경로가 얼마나 평평한지 지정하는 0에서 1까지의 값입니다. 자세한 내용은 메서드를 참조하세요 Flatten() .

예제

다음 코드 예제는 Windows Forms 사용하도록 설계되었으며 PaintEventArgs 이벤트 개체인 eOnPaint가 필요합니다. 코드는 다음 작업을 수행합니다.

  • 경로를 만들고 경로에 사각형을 추가합니다.

  • 해당 사각형을 검은색으로 화면에 그립니다.

  • 경로를 원근 변형으로 뒤틀어 줍니다.

  • 뒤틀린 사각형(경로)을 빨간색으로 화면에 그립니다.

private:
   void WarpExample( PaintEventArgs^ e )
   {
      // Create a path and add a rectangle.
      GraphicsPath^ myPath = gcnew GraphicsPath;
      RectangleF srcRect = RectangleF(0,0,100,200);
      myPath->AddRectangle( srcRect );

      // Draw the source path (rectangle)to the screen.
      e->Graphics->DrawPath( Pens::Black, myPath );

      // Create a destination for the warped rectangle.
      PointF point1 = PointF(200,200);
      PointF point2 = PointF(400,250);
      PointF point3 = PointF(220,400);
      array<PointF>^ destPoints = {point1,point2,point3};

      // Create a translation matrix.
      Matrix^ translateMatrix = gcnew Matrix;
      translateMatrix->Translate( 100, 0 );

      // Warp the source path (rectangle).
      myPath->Warp( destPoints, srcRect, translateMatrix, WarpMode::Perspective, 0.5f );

      // Draw the warped path (rectangle) to the screen.
      e->Graphics->DrawPath( gcnew Pen( Color::Red ), myPath );
   }
private void WarpExample(PaintEventArgs e)
{
             
    // Create a path and add a rectangle.
    GraphicsPath myPath = new GraphicsPath();
    RectangleF srcRect = new RectangleF(0, 0, 100, 200);
    myPath.AddRectangle(srcRect);
             
    // Draw the source path (rectangle)to the screen.
    e.Graphics.DrawPath(Pens.Black, myPath);
             
    // Create a destination for the warped rectangle.
    PointF point1 = new PointF(200, 200);
    PointF point2 = new PointF(400, 250);
    PointF point3 = new PointF(220, 400);
    PointF[] destPoints = {point1, point2, point3};
             
    // Create a translation matrix.
    Matrix translateMatrix = new Matrix();
    translateMatrix.Translate(100, 0);
             
    // Warp the source path (rectangle).
    myPath.Warp(destPoints, srcRect, translateMatrix,
        WarpMode.Perspective, 0.5f);
             
    // Draw the warped path (rectangle) to the screen.
    e.Graphics.DrawPath(new Pen(Color.Red), myPath);
}
Public Sub WarpExample(ByVal e As PaintEventArgs)

    ' Create a path and add a rectangle.
    Dim myPath As New GraphicsPath
    Dim srcRect As New RectangleF(0, 0, 100, 200)
    myPath.AddRectangle(srcRect)

    ' Draw the source path (rectangle)to the screen.
    e.Graphics.DrawPath(Pens.Black, myPath)

    ' Create a destination for the warped rectangle.
    Dim point1 As New PointF(200, 200)
    Dim point2 As New PointF(400, 250)
    Dim point3 As New PointF(220, 400)
    Dim destPoints As PointF() = {point1, point2, point3}

    ' Create a translation matrix.
    Dim translateMatrix As New Matrix
    translateMatrix.Translate(100, 0)

    ' Warp the source path (rectangle).
    myPath.Warp(destPoints, srcRect, translateMatrix, _
    WarpMode.Perspective, 0.5F)

    ' Draw the warped path (rectangle) to the screen.
    e.Graphics.DrawPath(New Pen(Color.Red), myPath)
End Sub

적용 대상

Warp(ReadOnlySpan<PointF>, RectangleF, Matrix, WarpMode, Single)

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

사각형과 병렬로 정의된 워프 변환을 이 GraphicsPath값에 적용합니다.

public void Warp(ReadOnlySpan<System.Drawing.PointF> destPoints, System.Drawing.RectangleF srcRect, System.Drawing.Drawing2D.Matrix? matrix = default, System.Drawing.Drawing2D.WarpMode warpMode = System.Drawing.Drawing2D.WarpMode.Perspective, float flatness = 0.25);
member this.Warp : ReadOnlySpan<System.Drawing.PointF> * System.Drawing.RectangleF * System.Drawing.Drawing2D.Matrix * System.Drawing.Drawing2D.WarpMode * single -> unit
Public Sub Warp (destPoints As ReadOnlySpan(Of PointF), srcRect As RectangleF, Optional matrix As Matrix = Nothing, Optional warpMode As WarpMode = System.Drawing.Drawing2D.WarpMode.Perspective, Optional flatness As Single = 0.25)

매개 변수

destPoints
ReadOnlySpan<PointF>

정의된 srcRect 사각형이 변환되는 병렬 프로그래밍을 정의하는 점의 배열입니다.

srcRect
RectangleF

에 의해 destPoints정의된 병렬 변환으로 변환되는 사각형을 나타내는 사각형입니다.

matrix
Matrix

경로에 적용할 기하학적 변환을 지정하는 행렬입니다.

warpMode
WarpMode

이 워프 작업에서 큐브 뷰 또는 쌍선 모드를 사용할지 여부를 지정합니다.

flatness
Single

결과 경로가 얼마나 평평한지 지정하는 0에서 1까지의 값입니다. 자세한 내용은 메서드를 참조하세요 Flatten(Matrix, Single) .

설명

의 경우 destPoints배열에는 3개 또는 4개의 요소가 포함될 수 있습니다. 배열에 세 개의 요소가 포함된 경우 병렬 프로그래밍의 오른쪽 아래 모서리는 처음 세 점에 의해 암시됩니다.

적용 대상