Added code to get the upper-right and lower-left points in the display area.