Picture Lab

<< Magpie Lab | HomeworkTrailIndex | Elevens Lab >>

Student Guide

Video on File Setup for Picture Lab

Download pixLab.zip and copy the pixLab folder)

Expand the zip archive to your storage device. Inside the pixLab folder are the two folders classes and images

To use the code in BlueJ:

  1. Under the Project menu, select Open Non BlueJ...
  2. In the dialog box, navigate to the pixLab folder and select classes
  3. Press Open in BlueJ
  4. Press the Compile button
  5. To test it out, right-click on PictureExplorer and select the main method, press okay. You should see the beach.jpg picture.

To use in Eclipse:

  1. Make a new Java Project in Eclipse (File > New > Java Project)
  2. Name it
  3. Under JRE, select: "Use an execution environment JRE: J2SE-1.5",
  4. Under Project Layout, select "Use project folder as root for source and class files"
  5. Press the Finish button
  6. From the File menu select Import
  7. From under the General folder select File System and press the Next button
  8. Press the Browse button and select the classes folder you unzipped earlier.
  9. Next to "Into folder" press the "Brouse" button to select the project Folder you just made.
  10. Press the Select All button and press the Finish button
  11. Using your operating system, copy the images folder to your workspace folder.
  12. To test it out, press the Run Button (looks like a play button), select JavaApplication and the PictureExplorer (you can also right-click PictureExplorer.java in the Package Explorer and select from the pop-up menu Run As > Java Application) You should see the beach.jpg picture.

Activities

  1. Picture Lab Activity 1 Introduction to Digital Pictures and Color
  2. Picture Lab Activity 2 Picking a Color
  3. Picture Lab Activity 3 Exploring a Picture
  4. Picture Lab Activity 4 Two-Dimensional Arrays in Java
  5. Picture Lab Activity 5 Modifying a Picture
  6. Picture Lab Activity 6 Mirroring Pictures
  7. Picture Lab Activity 7 Mirroring Part of a Picture
  8. Picture Lab Activity 8 Creating a Collage
  9. Picture Lab Activity 9 Simple Edge Detection
  10. Picture Lab Bonus Chromakey
  11. Picture Lab Bonus 2 Steganography
  12. Picture Lab Activity 1