GraphicsPath.IsOutlineVisible メソッド

定義

指定した点を指定したGraphicsPathで描画するときに、このPenのアウトライン内 (下) に含まれるかどうかを示します。

オーバーロード

名前 説明
IsOutlineVisible(Point, Pen)

指定した点を指定したGraphicsPathで描画するときに、このPenのアウトライン内 (下) に含まれるかどうかを示します。

IsOutlineVisible(PointF, Pen)

指定した点を指定したGraphicsPathで描画するときに、このPenのアウトライン内 (下) に含まれるかどうかを示します。

IsOutlineVisible(Point, Pen, Graphics)

指定したGraphicsPathで描画し、指定したPenを使用する場合に、指定したポイントがこのGraphicsのアウトライン内 (下) に含まれているかどうかを示します。

IsOutlineVisible(PointF, Pen, Graphics)

指定したGraphicsPathで描画し、指定したPenを使用する場合に、指定したポイントがこのGraphicsのアウトライン内 (下) に含まれているかどうかを示します。

IsOutlineVisible(Int32, Int32, Pen)

指定した点を指定したGraphicsPathで描画するときに、このPenのアウトライン内 (下) に含まれるかどうかを示します。

IsOutlineVisible(Single, Single, Pen)

指定した点を指定したGraphicsPathで描画するときに、このPenのアウトライン内 (下) に含まれるかどうかを示します。

IsOutlineVisible(Int32, Int32, Pen, Graphics)

指定したGraphicsPathで描画し、指定したPenを使用する場合に、指定したポイントがこのGraphicsのアウトライン内 (下) に含まれているかどうかを示します。

IsOutlineVisible(Single, Single, Pen, Graphics)

指定したGraphicsPathで描画し、指定したPenを使用する場合に、指定したポイントがこのGraphicsのアウトライン内 (下) に含まれているかどうかを示します。

IsOutlineVisible(Point, Pen)

指定した点を指定した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

返品

このメソッドは、指定したPenで描画されるときに、指定したポイントがこのGraphicsPathのアウトライン内に含まれている場合はtrueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

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

適用対象

IsOutlineVisible(PointF, Pen)

指定した点を指定した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

返品

このメソッドは、指定したPenで描画されるときに、指定したポイントがこのGraphicsPathのアウトライン内に含まれている場合はtrueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

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

適用対象

IsOutlineVisible(Point, Pen, Graphics)

指定した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);
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

返品

このメソッドは、指定したPenで描画された、指定したポイントがこのGraphicsPathのアウトライン内に含まれている場合はtrueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

このメソッドは、指定したパスのアウトラインが指定したポイントで表示されるかどうかをテストします。 テストする点の座標は、ワールド座標で指定されます。 graphicsの変換マトリックスは、可視性をテストする前に一時的に適用されます。

適用対象

IsOutlineVisible(PointF, Pen, Graphics)

指定した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);
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

返品

このメソッドは、指定したPenで描画された、指定したポイントがこのGraphicsPathのアウトライン内 (下) に含まれている場合は、trueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

このメソッドは、指定したパスのアウトラインが指定したポイントで表示されるかどうかをテストします。 テストする点の座標は、ワールド座標で指定されます。 graphicsの変換マトリックスは、可視性をテストする前に一時的に適用されます。

適用対象

IsOutlineVisible(Int32, Int32, Pen)

指定した点を指定した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

返品

このメソッドは、指定したPenで描画されるときに、指定したポイントがこのGraphicsPathのアウトライン内に含まれている場合はtrueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

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

適用対象

IsOutlineVisible(Single, Single, Pen)

指定した点を指定した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

返品

このメソッドは、指定したPenで描画されるときに、指定したポイントがこのGraphicsPathのアウトライン内に含まれている場合はtrueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

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

適用対象

IsOutlineVisible(Int32, Int32, Pen, Graphics)

指定した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);
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

返品

このメソッドは、指定したPenで描画された、指定したポイントがこのGraphicsPathのアウトライン内に含まれている場合はtrueを返します。それ以外の場合は、false

次のコード例は、Windows フォームで使用するように設計されており、PaintEventArgseOnPaint イベントが必要です。 コードは次のアクションを実行します。

  • パスを作成します。

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

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

  • ポイント (100、50) をテストして、 IsOutlineVisibleを呼び出して四角形のエッジの 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(Single, Single, Pen, Graphics)

指定した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);
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

返品

このメソッドは、指定したPenで描画された、指定したポイントがこのGraphicsPathのアウトライン内 (下) に含まれている場合は、trueを返します。それ以外の場合は、false

例については、IsOutlineVisible(Int32, Int32, Pen, Graphics)を参照してください。

注釈

このメソッドは、指定したパスのアウトラインが指定したポイントで表示されるかどうかをテストします。 テストする点の座標は、ワールド座標で指定されます。 graphics パラメーターの変換マトリックスは、可視性をテストする前に一時的に適用されます。

適用対象