next up previous
Next: Single Pixel vs. Up: Java's Image Processing Previous: The Java Color

Pixel Independent Operations

The ImageProducer interface represents an image source and defines the methods which must be implemented by classes wishing to communicate with ImageConsumer classes. The ImageConsumer interface defines a set of methods which must be implemented by any class that desires to consume image data from another class that produces it. These methods should only be called by the ImageProducer that wishes to pass image (and other) data to the ImageConsumer.

 
Figure 2: Behind the Scenes 

Behind the scenes image data is created according to Figure 2. JAVA allows the user to modify an image by inserting an image filter between the producer and the consumer of the image. The producer then sends the data which will be modified by the filter before reaching the consumer.



Bob Fisher
Fri Jul 4 16:11:50 BST 1997