public override bool isBevat(Point p, SchetsElement s) { GraphicsPath myPath = new GraphicsPath(); myPath.AddLine(s.Beginpunt, s.Eindpunt); myPath.Widen(MaakPen(kwast, 3)); return(myPath.IsVisible(p)); }
public override bool isBevat(Point p, SchetsElement s) { Size siz = new Size((s.Eindpunt.X - s.Beginpunt.X), (s.Eindpunt.Y - s.Beginpunt.Y)); Rectangle myEllipse = new Rectangle(s.Beginpunt, siz); GraphicsPath myPath = new GraphicsPath(); myPath.AddEllipse(myEllipse); return(myPath.IsVisible(p)); }
public override bool isBevat(Point p, SchetsElement s) { Size siz = new Size((s.Eindpunt.X - s.Beginpunt.X), (s.Eindpunt.Y - s.Beginpunt.Y)); Rectangle myRectangle = new Rectangle(s.Beginpunt, siz); GraphicsPath myPath = new GraphicsPath(); myPath.AddRectangle(myRectangle); return(myPath.IsOutlineVisible(p.X, p.Y, MaakPen(kwast, 3))); }
public override bool isBevat(Point p, SchetsElement s) { GraphicsPath myPath = new GraphicsPath(); myPath.AddString(s.Tekst, new FontFamily("Tahoma"), (int)FontStyle.Regular, 48, s.Beginpunt, StringFormat.GenericDefault); Matrix m = new Matrix(); m.RotateAt(s.Gedraaid, s.Beginpunt); myPath.Transform(m); return(myPath.IsVisible(p)); }
public override bool isBevat(Point p, SchetsElement s) { for (int i = 0; i < (s.penPunten.Count - 1); i++) { GraphicsPath myPath = new GraphicsPath(); myPath.AddLine(s.penPunten[i], s.penPunten[i + 1]); myPath.Widen(MaakPen(kwast, 3)); if (myPath.IsVisible(p)) { return(true); } } return(false); }
public override bool isBevat(Point p, SchetsElement s) { return(false); }
public abstract bool isBevat(Point p, SchetsElement s);
public override bool isBevat(Point p, SchetsElement s) { Size siz = new Size((s.Eindpunt.X - s.Beginpunt.X), (s.Eindpunt.Y - s.Beginpunt.Y)); return(new Rectangle(s.Beginpunt, siz).Contains(p)); }