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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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 フォームで使用するように設計されており、 イベントがOnPaint必要PaintEventArgseです。 コードは、次のアクションを実行します。

  • パスを作成します。

  • パスに四角形を追加します。

  • 幅の広いペンを作成し、そのペンでパスを広げます (例をより明確にするために)。

  • を呼び出 IsOutlineVisibleして、ポイント (100、50) をテストして、四角形の端の 1 つ (下) 内にあるかどうかを確認します。

結果がメッセージ ボックスに表示されます (この場合は 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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
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)」を参照してください。

注釈

このメソッドは、指定したパスのアウトラインが指定したポイントで表示されるかどうかをテストします。

適用対象