Take screenshot of a rectangular area and save it as png file
import –frame myScreenShot.png
After this command, the mouse pointer changes to a set of cross-hairs; left-click and drag the mouse across an area of the screen and release the mouse to capture the selected area.