Java in a Nutshell

Previous Chapter 21
The java.awt.image Package
Next
 

21.3 java.awt.image.CropImageFilter (JDK 1.0)

This class implements an ImageFilter that crops an image to a specified rectangle. The methods defined by this class are used for communication between the filter and its FilteredImageSource and should never be called directly.

public class CropImageFilter extends ImageFilter {
    // Public Constructor
            public CropImageFilter(int x, int y, int w, int h);
    // Public Instance Methods
            public void setDimensions(int w, int h);  // Overrides ImageFilter
            public void setPixels(int x, int y, int w, int h, ColorModel model, 
            public void setPixels'u'byte[] pixels, int off, int scansize);  // Overrides ImageFilter
            public void setPixels(int x, int y, int w, int h, ColorModel model,
            public void setPixels'u'int[] pixels, int off, int scansize);  // Overrides ImageFilter
            public void setProperties(Hashtable props);  // Overrides ImageFilter
}

Hierarchy:

Object->ImageFilter(ImageConsumer, Cloneable)->CropImageFilter


Previous Home Next
java.awt.image.ColorModel (JDK 1.0) Book Index java.awt.image.DirectColorModel (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.