Below ARE sample sessions:
Welcome, enter filename of image to edit.
Filename? lena.jpg
Cmd [ulRLsx]: u
flipping up/down
Cmd [ulRLsx]: s
saving image
Filename? updown.jpg
Cmd [ulRLsx]: x
Bye
Welcome, enter filename of image to edit.
Filename? lena.jpg
Cmd [ulRLsx]: l
flipping left/right
Cmd [ulRLsx]: s
saving image
Filename? leftright.jpg
Cmd [ulRLsx]: x
Bye
Welcome, enter filename of image to edit.
Filename? lena.jpg
Cmd [ulRLsx]: R
rotating right
Cmd [ulRLsx]: s
saving image
Filename? rotateR.jpg
Cmd [ulRLsx]: x
Bye
Welcome, enter filename of image to edit.
Filename? lena.jpg
Cmd [ulRLsx]: L
rotating left
Cmd [ulRLsx]: s
saving image
Filename? rotateL.jpg
Cmd [ulRLsx]: x
Bye
lena.jpg
|
|
updown.jpg
|
|
leftright.jpg
|
|
rotateR.jpg
|
|
rotateL.jpg
|
|
Here is another sample session that combines multiple operations:
Welcome, enter filename of image to edit.
Filename? aerial.jpg
Cmd [ulRLsx]: l
flipping left/right
Cmd [ulRLsx]: R
rotating right
Cmd [ulRLsx]: s
saving image
Filename? combo.jpg
Cmd [ulRLsx]: x
Bye
aerial.jpg
|
|
combo.jpg
|
|
Your program should be saved in a file named ImageEdit.java
Your class should be named ImageEdit
Make sure your code (and every program that you write) have a
comment block in the beginning of the file.
Make sure your code is properly formatted and documented (as always).
Submit your program using the following command on unix.ic.ucsc.edu:
submit cmps012a-ap.w15 lab4 ImageEdit.java
Make sure that for this program, and all other programs you write for CMPS 12A this quarter,
have been recompiled and tested on unix.ic.ucsc.edu before submission.
Grading rubrics for lab4:
20 -- flip up/down
20 -- flip left/right
20 -- rotate right
20 -- rotate left
20 -- combination of edits
-30 -- poor use of methods
-10 -- poor/lack of comments
Who Will Grade What:
--------------------
Derek : aalkahel - dlopez8
Eitan : dlskilli - jssorens
Ryan : jtorre34 - romarks
Kara : rpickett - zwang58