All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Pixmap.PixApp

java.lang.Object
   |
   +----Pixmap.PixApp

public class PixApp
extends Object
 Image manipulating program.  This program illustrates several
 object-oriented idioms and patterns.  A program similar in
 functionality is available in C++, for information send email to
 ola@cs.duke.edu
 

functionality: the program allows the you to to display images (gif or jpg, or anything supported by Java's getToolkit().getImage() Images are specified using a file dialog, but a simple modification would allow the user to use an http: URL (currently a file: URL is used)

Each image is shown as a full image, with a thumbnail sketch added to the program GUI. Clicking on the thumbnail makes that image the active image, the program options for manipulating images always act on the active image.

Current image processing is simple: reflect horizontally/vertically and invert (change black-to-white or vice-versa, and do the right thing with color pixels, e.g., red = 255 - red).

This program is reasonably well-designed, but it is meant to be be used as a teaching program, so students are urged to suggest/make modificiations to improve the design and to increase the functionality of the program

Author:
Syam Gadde (gadde@cs.duke.edu), Owen Astrachan (ola@cs.duke.edu)
See Also:
PixGui, Command, Pixmap, PixIcon, PixmapOperator

Constructor Index

 o PixApp()

Method Index

 o main(String[])
start a PixApp application

Constructors

 o PixApp
 public PixApp()

Methods

 o main
 public static void main(String argv[])
start a PixApp application


All Packages  Class Hierarchy  This Package  Previous  Next  Index