GraphicsPath.IsOutlineVisible 메서드

정의

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

오버로드

IsOutlineVisible(Int32, Int32, Pen, Graphics)

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(Point, Pen, Graphics)

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(Single, Single, Pen, Graphics)

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(Single, Single, Pen)

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(PointF, Pen)

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(PointF, Pen, Graphics)

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(Int32, Int32, Pen)

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(Point, Pen)

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

IsOutlineVisible(Int32, Int32, Pen, Graphics)

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

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(int x, int y, System::Drawing::Pen ^ pen, System::Drawing::Graphics ^ graphics);
public bool IsOutlineVisible (int x, int y, System.Drawing.Pen pen, System.Drawing.Graphics graphics);
public bool IsOutlineVisible (int x, int y, System.Drawing.Pen pen, System.Drawing.Graphics? graphics);
member this.IsOutlineVisible : int * int * System.Drawing.Pen * System.Drawing.Graphics -> bool
Public Function IsOutlineVisible (x As Integer, y As Integer, pen As Pen, graphics As Graphics) As Boolean

매개 변수

x
Int32

테스트할 점의 x좌표입니다.

y
Int32

테스트할 점의 y좌표입니다.

pen
Pen

테스트할 Pen입니다.

graphics
Graphics

가시성을 테스트할 Graphics입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

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

  • 경로를 만듭니다.

  • 경로에 사각형을 추가합니다.

  • 넓은 펜을 만들고 해당 펜으로 경로를 확장합니다(예제를 더 명확하게 만들기 위해).

  • 점(100, 50)을 테스트하여 를 호출 IsOutlineVisible하여 사각형의 가장자리 중 하나(아래) 내에 있는지 확인합니다.

결과는 메시지 상자에 표시됩니다(이 경우 true). 즉, 에지가 해당 지점에 렌더링됩니다.

public:
   void IsOutlineVisibleExample( PaintEventArgs^ e )
   {
      GraphicsPath^ myPath = gcnew GraphicsPath;
      Rectangle rect = Rectangle(20,20,100,100);
      myPath->AddRectangle( rect );
      Pen^ testPen = gcnew Pen( Color::Black,20.0f );
      myPath->Widen( testPen );
      e->Graphics->FillPath( Brushes::Black, myPath );
      bool visible = myPath->IsOutlineVisible( 100, 50, testPen, e->Graphics );
      MessageBox::Show( String::Format( "visible = {0}", visible ) );
   }
public void IsOutlineVisibleExample(PaintEventArgs e)
{
    GraphicsPath myPath = new GraphicsPath();
    Rectangle rect = new Rectangle(20, 20, 100, 100);
    myPath.AddRectangle(rect);
    Pen testPen = new Pen(Color.Black, 20);
    myPath.Widen(testPen);
    e.Graphics.FillPath(Brushes.Black, myPath);
    bool visible = myPath.IsOutlineVisible(100, 50, testPen,
        e.Graphics);
    MessageBox.Show("visible = " + visible.ToString());
}
Public Sub IsOutlineVisibleExample(ByVal e As PaintEventArgs)
    Dim myPath As New GraphicsPath
    Dim rect As New Rectangle(20, 20, 100, 100)
    myPath.AddRectangle(rect)
    Dim testPen As New Pen(Color.Black, 20)
    myPath.Widen(testPen)
    e.Graphics.FillPath(Brushes.Black, myPath)
    Dim visible As Boolean = myPath.IsOutlineVisible(100, 50, _
    testPen, e.Graphics)
    MessageBox.Show(("visible = " + visible.ToString()))
End Sub

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다. 테스트할 점의 좌표는 월드 좌표로 제공됩니다. 의 graphics 변환 매트릭스는 표시 유형을 테스트하기 전에 일시적으로 적용됩니다.

적용 대상

IsOutlineVisible(Point, Pen, Graphics)

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

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(System::Drawing::Point pt, System::Drawing::Pen ^ pen, System::Drawing::Graphics ^ graphics);
public bool IsOutlineVisible (System.Drawing.Point pt, System.Drawing.Pen pen, System.Drawing.Graphics graphics);
public bool IsOutlineVisible (System.Drawing.Point pt, System.Drawing.Pen pen, System.Drawing.Graphics? graphics);
member this.IsOutlineVisible : System.Drawing.Point * System.Drawing.Pen * System.Drawing.Graphics -> bool
Public Function IsOutlineVisible (pt As Point, pen As Pen, graphics As Graphics) As Boolean

매개 변수

pt
Point

테스트할 위치를 지정하는 Point입니다.

pen
Pen

테스트할 Pen입니다.

graphics
Graphics

가시성을 테스트할 Graphics입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다. 테스트할 점의 좌표는 월드 좌표로 제공됩니다. 의 graphics 변환 매트릭스는 표시 유형을 테스트하기 전에 일시적으로 적용됩니다.

적용 대상

IsOutlineVisible(Single, Single, Pen, Graphics)

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

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(float x, float y, System::Drawing::Pen ^ pen, System::Drawing::Graphics ^ graphics);
public bool IsOutlineVisible (float x, float y, System.Drawing.Pen pen, System.Drawing.Graphics graphics);
public bool IsOutlineVisible (float x, float y, System.Drawing.Pen pen, System.Drawing.Graphics? graphics);
member this.IsOutlineVisible : single * single * System.Drawing.Pen * System.Drawing.Graphics -> bool
Public Function IsOutlineVisible (x As Single, y As Single, pen As Pen, graphics As Graphics) As Boolean

매개 변수

x
Single

테스트할 점의 x좌표입니다.

y
Single

테스트할 점의 y좌표입니다.

pen
Pen

테스트할 Pen입니다.

graphics
Graphics

가시성을 테스트할 Graphics입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다. 테스트할 점의 좌표는 월드 좌표로 제공됩니다. 매개 변수의 graphics 변환 매트릭스는 표시 유형을 테스트하기 전에 일시적으로 적용됩니다.

적용 대상

IsOutlineVisible(Single, Single, Pen)

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

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(float x, float y, System::Drawing::Pen ^ pen);
public bool IsOutlineVisible (float x, float y, System.Drawing.Pen pen);
member this.IsOutlineVisible : single * single * System.Drawing.Pen -> bool
Public Function IsOutlineVisible (x As Single, y As Single, pen As Pen) As Boolean

매개 변수

x
Single

테스트할 점의 x좌표입니다.

y
Single

테스트할 점의 y좌표입니다.

pen
Pen

테스트할 Pen입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다.

적용 대상

IsOutlineVisible(PointF, Pen)

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

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(System::Drawing::PointF point, System::Drawing::Pen ^ pen);
public bool IsOutlineVisible (System.Drawing.PointF point, System.Drawing.Pen pen);
member this.IsOutlineVisible : System.Drawing.PointF * System.Drawing.Pen -> bool
Public Function IsOutlineVisible (point As PointF, pen As Pen) As Boolean

매개 변수

point
PointF

테스트할 위치를 지정하는 PointF입니다.

pen
Pen

테스트할 Pen입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다.

적용 대상

IsOutlineVisible(PointF, Pen, Graphics)

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

지정된 GraphicsPath과 지정된 Pen를 사용하여 그릴 때 이 Graphics의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(System::Drawing::PointF pt, System::Drawing::Pen ^ pen, System::Drawing::Graphics ^ graphics);
public bool IsOutlineVisible (System.Drawing.PointF pt, System.Drawing.Pen pen, System.Drawing.Graphics graphics);
public bool IsOutlineVisible (System.Drawing.PointF pt, System.Drawing.Pen pen, System.Drawing.Graphics? graphics);
member this.IsOutlineVisible : System.Drawing.PointF * System.Drawing.Pen * System.Drawing.Graphics -> bool
Public Function IsOutlineVisible (pt As PointF, pen As Pen, graphics As Graphics) As Boolean

매개 변수

pt
PointF

테스트할 위치를 지정하는 PointF입니다.

pen
Pen

테스트할 Pen입니다.

graphics
Graphics

가시성을 테스트할 Graphics입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다. 테스트할 점의 좌표는 월드 좌표로 제공됩니다. 의 graphics 변환 매트릭스는 표시 유형을 테스트하기 전에 일시적으로 적용됩니다.

적용 대상

IsOutlineVisible(Int32, Int32, Pen)

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

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(int x, int y, System::Drawing::Pen ^ pen);
public bool IsOutlineVisible (int x, int y, System.Drawing.Pen pen);
member this.IsOutlineVisible : int * int * System.Drawing.Pen -> bool
Public Function IsOutlineVisible (x As Integer, y As Integer, pen As Pen) As Boolean

매개 변수

x
Int32

테스트할 점의 x좌표입니다.

y
Int32

테스트할 점의 y좌표입니다.

pen
Pen

테스트할 Pen입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다.

적용 대상

IsOutlineVisible(Point, Pen)

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

지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있는지 여부를 나타냅니다.

public:
 bool IsOutlineVisible(System::Drawing::Point point, System::Drawing::Pen ^ pen);
public bool IsOutlineVisible (System.Drawing.Point point, System.Drawing.Pen pen);
member this.IsOutlineVisible : System.Drawing.Point * System.Drawing.Pen -> bool
Public Function IsOutlineVisible (point As Point, pen As Pen) As Boolean

매개 변수

point
Point

테스트할 위치를 지정하는 Point입니다.

pen
Pen

테스트할 Pen입니다.

반환

이 메서드는 지정된 GraphicsPath을 사용하여 그릴 때 이 Pen의 윤곽선 내에 지정된 지점이 들어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

예제

예제를 보려면 IsOutlineVisible(Int32, Int32, Pen, Graphics)를 참조하세요.

설명

이 메서드는 지정된 경로의 윤곽선이 지정된 지점에 표시되는지 테스트합니다.

적용 대상