In this assignment you will be making some tools to be used by graphic designers to automate placing
of graphical overlays on images.
You will need to make the following classes.
1. Rectangle.java
2. Oval.java
3. Triangle.java
4. ShapeDriver.java
The first three classes MUST ALL have:
1) A constructor that takes 5 arguments (int x, int y, int sizex, int sizey, Colour colour)
2) A method public void draw(BufferedImage img);
Only the ShapeDriver class should have a void main()
The driver program will take user input from the command line arguments.
You must not use the Scanner class!
Please read the “how to use command line arguments” section below.
The shape classes will all operate in a similar manor as described below.
The user will provide the following data via command line arguments:
1) The name of an input image. (optional)
2) The name of the shape (one of “rectangle”, “oval”, “triangle”)
3) The X (horizontal from the left edge) position of where the shape will sit on the image (in pixels)
4) The Y (vertical from the top edge) position of where the shape will sit on the image (in pixels)
5) The width of the shape
6) The height of the shape.
7) The name of a colour.
8) The name of the output image
The post Make some tools to be used by graphic designers appeared first on My Assignment Online.