GraphicsPath.IsVisible Methode

Definitie

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

Overloads

Name Description
IsVisible(Point)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

IsVisible(PointF)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

IsVisible(Point, Graphics)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

IsVisible(PointF, Graphics)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

IsVisible(Int32, Int32)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

IsVisible(Single, Single)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

IsVisible(Int32, Int32, Graphics)

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt, met behulp van de opgegeven Graphics.

IsVisible(Single, Single, Graphics)

Hiermee wordt aangegeven of het opgegeven punt zich binnen dit GraphicsPath punt bevindt in het zichtbare clipgebied van de opgegeven Graphics.

IsVisible(Point)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

public:
 bool IsVisible(System::Drawing::Point point);
public bool IsVisible(System.Drawing.Point point);
member this.IsVisible : System.Drawing.Point -> bool
Public Function IsVisible (point As Point) As Boolean

Parameters

point
Point

Een Point die het punt vertegenwoordigt dat moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Zie GraphicsPath.IsVisible Method (Int32, Int32, Graphics)voor een voorbeeld.

Van toepassing op

IsVisible(PointF)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

public:
 bool IsVisible(System::Drawing::PointF point);
public bool IsVisible(System.Drawing.PointF point);
member this.IsVisible : System.Drawing.PointF -> bool
Public Function IsVisible (point As PointF) As Boolean

Parameters

point
PointF

Een PointF die het punt vertegenwoordigt dat moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Zie IsVisible(Int32, Int32, Graphics)voor een voorbeeld.

Van toepassing op

IsVisible(Point, Graphics)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

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

Parameters

pt
Point

Een Point die het punt vertegenwoordigt dat moet worden getest.

graphics
Graphics

De Graphics waarvoor de zichtbaarheid moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Zie GraphicsPath.IsVisible Method (Int32, Int32, Graphics)voor een voorbeeld.

Opmerkingen

De coördinaten van het te testen punt worden gegeven in wereldcoördinaten. De transformatiematrix van de graphics parameter wordt tijdelijk toegepast voordat er wordt getest op zichtbaarheid.

Van toepassing op

IsVisible(PointF, Graphics)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

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

Parameters

pt
PointF

Een PointF die het punt vertegenwoordigt dat moet worden getest.

graphics
Graphics

De Graphics waarvoor de zichtbaarheid moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich hierin bevindt; anders. false

Voorbeelden

Zie IsVisible(Int32, Int32, Graphics)voor een voorbeeld.

Opmerkingen

De coördinaten van het te testen punt worden gegeven in wereldcoördinaten. De transformatiematrix van de graphics parameter wordt tijdelijk toegepast voordat er wordt getest op zichtbaarheid.

Van toepassing op

IsVisible(Int32, Int32)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

public:
 bool IsVisible(int x, int y);
public bool IsVisible(int x, int y);
member this.IsVisible : int * int -> bool
Public Function IsVisible (x As Integer, y As Integer) As Boolean

Parameters

x
Int32

De x-coördinaat van het punt dat moet worden getest.

y
Int32

De y-coördinaat van het punt dat moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Zie IsVisible(Int32, Int32, Graphics)voor een voorbeeld.

Van toepassing op

IsVisible(Single, Single)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt.

public:
 bool IsVisible(float x, float y);
public bool IsVisible(float x, float y);
member this.IsVisible : single * single -> bool
Public Function IsVisible (x As Single, y As Single) As Boolean

Parameters

x
Single

De x-coördinaat van het punt dat moet worden getest.

y
Single

De y-coördinaat van het punt dat moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Zie IsVisible(Int32, Int32, Graphics)voor een voorbeeld.

Van toepassing op

IsVisible(Int32, Int32, Graphics)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich in dit GraphicsPathpunt bevindt, met behulp van de opgegeven Graphics.

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

Parameters

x
Int32

De x-coördinaat van het punt dat moet worden getest.

y
Int32

De y-coördinaat van het punt dat moet worden getest.

graphics
Graphics

De Graphics waarvoor de zichtbaarheid moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Het volgende codevoorbeeld is ontworpen voor gebruik met Windows Forms en vereist PaintEventArgse, een OnPaint-gebeurtenisobject. De code voert de volgende acties uit:

  • Hiermee maakt u een pad en voegt u een beletselteken toe aan het pad.

  • Test of het opgegeven punt zich in het pad bevindt.

  • Hiermee wordt het resultaat weergegeven in een dialoogvenster.

private:
   void IsVisibleExample( PaintEventArgs^ e )
   {
      
      // Create a path and add an ellipse.
      GraphicsPath^ myPath = gcnew GraphicsPath;
      myPath->AddEllipse( 0, 0, 100, 100 );
      
      // Test the visibility of point (50, 50).
      bool visible = myPath->IsVisible( 50, 50, e->Graphics );
      
      // Show the result.
      MessageBox::Show( visible.ToString() );
   }
private void IsVisibleExample(PaintEventArgs e)
{
             
    // Create a path and add an ellipse.
    GraphicsPath myPath = new GraphicsPath();
    myPath.AddEllipse(0, 0, 100, 100);
             
    // Test the visibility of point (50, 50).
    bool visible = myPath.IsVisible(50, 50, e.Graphics);
             
    // Show the result.
    MessageBox.Show(visible.ToString());
}
Public Sub IsVisibleExample(ByVal e As PaintEventArgs)
    Dim myPath As New GraphicsPath
    myPath.AddEllipse(0, 0, 100, 100)
    Dim visible As Boolean = myPath.IsVisible(50, 50, e.Graphics)
    MessageBox.Show(visible.ToString())
End Sub

Opmerkingen

De coördinaten van het te testen punt worden gegeven in wereldcoördinaten. De transformatiematrix van graphics wordt tijdelijk toegepast voordat er wordt getest op zichtbaarheid.

Van toepassing op

IsVisible(Single, Single, Graphics)

Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs
Bron:
GraphicsPath.cs

Hiermee wordt aangegeven of het opgegeven punt zich binnen dit GraphicsPath punt bevindt in het zichtbare clipgebied van de opgegeven Graphics.

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

Parameters

x
Single

De x-coördinaat van het punt dat moet worden getest.

y
Single

De y-coördinaat van het punt dat moet worden getest.

graphics
Graphics

De Graphics waarvoor de zichtbaarheid moet worden getest.

Retouren

Deze methode retourneert true als het opgegeven punt zich in dit GraphicsPathpunt bevindt; anders. false

Voorbeelden

Zie IsVisible(Int32, Int32, Graphics)voor een voorbeeld.

Opmerkingen

De coördinaten van het te testen punt worden gegeven in wereldcoördinaten. De transformatiematrix van de graphics parameter wordt tijdelijk toegepast voordat er wordt getest op zichtbaarheid.

Van toepassing op