FHTW Berlin

FB 4
Internationale Media and Computing
MeSoII: Media Software II
Sommersemester 2002


Exercise 11: IMI PicShop

Okay, here we go! You folks now know so much about making Java programs work, we are going to develop our own IMI PicShop in the lab! You need the jai libraries that are not normally included in Java. Strange to say, my XP chokes on them, but they work fine in the lab. So I suggest a test installation Monday to decide whether you will come to the lab Tuesday or not!

Remi Elad had trouble with XP, too, in the morning, so he came to the lab, did the exercise, and then fussed around with XP until he made it work. So an extra point to Remi for figuring this out!

Betreff:
JAI RUNS under XP

Hi there,
It runs in my system. One has to start the TUT from the programm menu. It runs with a batch file.
It looks something new/different , may be because i have jdk1.4
The batch file looks like this.
C:\JaiTutor>REM

C:\JaiTutor>REM A batch file to run the demo.

C:\JaiTutor>REM

C:\JaiTutor>java -Xmx32m -classpath .;./classes Tutor
It opens its own imaging applet window, resizable. It does not run under the browser (ie). I want
to try it with netscape.

START > PROGRAMS > JAITUTOR > RUN TUTOR


  1. Start off by digging out one of those editors you did as a reference. This will serve as a basis for you PicShop program. On the basis of this, make an applet or an application that has a title bar proudly proclaiming it to be IMI PicShop and having some menu buttons. I suggest starting out with File / (New / Open / Save / Exit) and perhaps a Help. Make sure this works before going on.
  2. Now start looking at the Advanced Imaging tutorial found at http://developer.java.sun.com/developer/onlineTraining/javaai/. Do not panic! There are two panes, one written in a language resembling English but full of graphics art terminology, and one with a tabbed pane. The first tab shows the results, the second one shows the code behind the scenes. Spend no more than an hour looking around at the cool stuff here. Report on what you play with.
  3. Can you take the code for resizing the image, add a menu item to your IMI PicShop such as Edit / Size, and make this work? That is, can your IMI PicShop now read in a file, resize it and write it back out again? Check out the Image API for hints on storing images.
  4. Now choose some other feature such as histogramm. Can you include it into your IMI PicShop?
  5. The bored can now go hog-wild* and keep stuffing in features until they can't look straight any more! I want to hear about all the cool stuff you got to work!

* From Webster's Encyclopedic Unabridged Dictionary of the English Language:

hog-wild, adj. Informal. wildly or intemperately enthusiastic or excited.


The URL to your report, which will describe what you did during the exercise and include links to your code, is due in my email box next year in week 2. This means Tuesday at 8.00 for Group 1 and Thursday at 12.00 for Group 2. Do not forget to put your names on the report! When you send the URL to me, include your partner in the CC. That way I don't get either 2 emails or none, while each thought the other was doing it. And when I answer you, I can immediately answer both of you without having to look up your preferred email account.


Debora Weber-Wulff (weberwu@fhtw-berlin.de)