How Do I Process Images with Java?
By Aaron Michael Cohen
Dr. Dobb's Journal July 1998
Image big_image = getDefaultToolkit.getImage("lena.jpg"); ImageFilter shrinker=new AreaAveragingScaleFilter(big_image.getWidth()/2, big_image.getHeight() / 2); ImageProducer source=new FilteredImageSource(big_image.getSource(), shrinker); Image small_image=createImage(source);
Example 3: Using an ImageFilter with the FilteredImageSource class.
Copyright © 1998, Dr. Dobb's Journal