This package can be used to render an image using a drawing command language.
It takes a string with commands that define the graphic primitives to be drawn in an image.
Several commands are currently supported: right, left, up, down, ellipse, filledellipse, filledarc, rectangle, polygon, color, x, y, pixel, fontsize, text and file.
The main class interprets the drawing commands by calling separate classes that draw the requested graphic primitives in an image.
The image with the rendered graphics may be saved to file in the PNG format.
The same image file can be used in subsequent requests to allow the user to perform interactive graphic drawings. |