((xEnd - xStart) / newSize) + 1 = 172.99999999
int Width = (int)((xEnd - xStart) / newSize) + 1; = 172
int xNum = Convert.ToInt32((xEnd - xStart) / newSize) + 1; =173