private List<IntPoint> GetListOfPointFromArray( int[] points ) { List<IntPoint> list = new List<IntPoint>( ); for ( int i = 0, n = points.Length; i < n; i += 2 ) { list.Add( new IntPoint( points[i], points[i + 1] ) ); } return list; } }