All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.JPM.Filters.Shrink

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----Acme.JPM.Filters.ImageFilterPlus
                   |
                   +----Acme.JPM.Filters.RGBAllFilter
                           |
                           +----Acme.JPM.Filters.Shrink

public class Shrink
extends RGBAllFilter
An ImageFilter that shrinks by pixel averaging.

Shrinks an image an integral factor by averaging pixels. Because the resulting pixels might not fit into the input's color model, the output is always in the default RGB color model. This filter is somewhat slow.

Fetch the software.
Fetch the entire Acme package.

See Also:
Enlarge, ScaleCopy

Constructor Index

 o Shrink(ImageProducer, int)
Constructor.

Method Index

 o filterRGBAll(int, int, int[][])
This is the routine that subclasses must implement.
 o main(String[])

Constructors

 o Shrink
 public Shrink(ImageProducer producer,
               int divisor)
Constructor.

Methods

 o filterRGBAll
 public void filterRGBAll(int width,
                          int height,
                          int rgbPixels[][])
This is the routine that subclasses must implement.

Overrides:
filterRGBAll in class RGBAllFilter
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs