// Adds rect into sequence, indexed incrementally public void AddRect(int width, int height) { RectSize rs = new RectSize(); rs.width = width; rs.height = height; sourceRects.Add(rs); }