Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Command
Draws a line, rectangle, or oval in an image object. You need to specify a starting x and y location, an ending x and y location, and an optional set of parameters. These parameters include #lineSize, #color, and #shapeType. The #shapeType can be #line, #oval, #rect, or #roundRect. These are unfilled shapes. Use the fill command to draw filled shapes.