Class FilteredImageSource

Class java.awt.image.FilteredImageSource

Class Members | This Package | All Packages
java.lang.Object
   |
   +----java.awt.image.FilteredImageSource

public class FilteredImageSource
extends Object
implements ImageProducer

This class is an implementation of the ImageProducer interface which takes an existing image and a filter object and uses them to produce image data for a new filtered version of the original image. Here is an example which filters an image by swapping the red and blue compents:

	Image src = getImage("doc:///demo/images/duke/T1.gif");
	ImageFilter colorfilter = new RedBlueSwapFilter();
	Image img = createImage(new FilteredImageSource(src.getSource(),
							colorfilter));
 

See Also:
ImageProducer