src/java.desktop/share/classes/java/awt/image/FilteredImageSource.java

Print this page

        

*** 35,45 **** /** * 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: * <pre> * * Image src = getImage("doc:///demo/images/duke/T1.gif"); * ImageFilter colorfilter = new RedBlueSwapFilter(); * Image img = createImage(new FilteredImageSource(src.getSource(), --- 35,45 ---- /** * 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 components: * <pre> * * Image src = getImage("doc:///demo/images/duke/T1.gif"); * ImageFilter colorfilter = new RedBlueSwapFilter(); * Image img = createImage(new FilteredImageSource(src.getSource(),