Beispiel #1
0
 private static CropNewSize CropGetNewSize(Line[] side)
 {
     int min = side.TakeWhile(l => l.Empty).Count();
     int max = side.Reverse().TakeWhile(l => l.Empty).Count();
     int len = side.Length - min - max;
     return new CropNewSize(min, len);
 }