public bool IsVisible(float x, float y)
{
return IsVisible (new PointF(x,y), null);
}
GraphicsPath::IsVisible ( Point point ) : bool | |
GraphicsPath::IsVisible ( Point point, Graphics graphics ) : bool | |
GraphicsPath::IsVisible ( PointF point ) : bool | |
GraphicsPath::IsVisible ( PointF point, Graphics graphics ) : bool | |
GraphicsPath::IsVisible ( float x, float y, Graphics graphics ) : bool | |
GraphicsPath::IsVisible ( int x, int y ) : bool | |
GraphicsPath::IsVisible ( int x, int y, Graphics graphics ) : bool |
//檢查座標x,y是否在圖形內 public override bool ContainsInShape(int x, int y) { GraphicsPath path = new GraphicsPath(); path.FillMode = FillMode.Winding; path.AddRectangle(new Rectangle(_locationOfTopPoint, new Size(Wideth, Height))); return path.IsVisible(x, y); }