次の方法で共有


GraphicsPath.IsOutlineVisible メソッド

定義

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

オーバーロード

IsOutlineVisible(Int32, Int32, Pen, Graphics)

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

IsOutlineVisible(Point, Pen, Graphics)

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

IsOutlineVisible(Single, Single, Pen, Graphics)

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

IsOutlineVisible(Single, Single, Pen)

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

IsOutlineVisible(PointF, Pen)

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

IsOutlineVisible(PointF, Pen, Graphics)

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

IsOutlineVisible(Int32, Int32, Pen)

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

IsOutlineVisible(Point, Pen)

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

IsOutlineVisible(Int32, Int32, Pen, Graphics)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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

戻り値

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

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

  • パスを作成します。

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

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

  • ポイント (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(Point, Pen, Graphics)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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

戻り値

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

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

注釈

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

適用対象

IsOutlineVisible(Single, Single, Pen, Graphics)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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

戻り値

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

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

注釈

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

適用対象

IsOutlineVisible(Single, Single, Pen)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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(PointF, Pen)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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(PointF, Pen, Graphics)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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

戻り値

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

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

注釈

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

適用対象

IsOutlineVisible(Int32, Int32, Pen)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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(Point, Pen)

ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs
ソース:
GraphicsPath.cs

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

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)を参照してください。

注釈

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

適用対象