public override RectangleF Bounds(Graphics gr) { float l = punten.Min(T => T.X); float r = punten.Max(T => T.X); float t = punten.Min(T => T.Y); float b = punten.Max(T => T.Y); return(new RectangleF(l, t, r - l, b - t)); }
public override Rectangle Bounds(Graphics gr) { int l = punten.Min(T => T.Value.X); int r = punten.Max(T => T.Value.X); int t = punten.Min(T => T.Value.Y); int b = punten.Max(T => T.Value.Y); return(new Rectangle(l, t, r - l, b - t)); }