Packages This Package Prev Next Index
public  class  java.awt.image.CropImageFilter
    extends  java.awt.image.ImageFilter  (II-§2.5)
{
        // Constructors
    public CropImageFilter(int  x, int  y, int  w, int h);	§2.2.1
        // Methods
    public void setDimensions(int  w, int  h);	§2.2.2
    public void setPixels(int  x, int  y, int  w, int  h,	§2.2.3
           ColorModel  model, byte  pixels[],
                    int  off, int  scansize);
    public void setPixels(int  x, int  y, int  w, int  h,	§2.2.4
           ColorModel  model, int  pixels[],
                    int  off, int  scansize);
    public void setProperties(Hashtable  props);	§2.2.5
}
The cropped image filter is an image filter for cropping images. This class extends the 
basic ImageFilter class (II-§2.5) to extract a given rectangular region of an existing image 
and provides a source for new image containing only the extracted region.
This class is meant to be used in conjunction with a FilteredImageSource (II-§2.4) to produce cropped versions of existing images.
public CropImageFilter(int  x, int  y, int  w, int  h)
x
- the x location of the top of the rectangle to be extracted
y
- the y location of the top of the rectangle to be extracted
w
- the width of the rectangle to be extracted
h
- the height of the rectangle to be extracted
public void setDimensions(int  w, int  h)
width
- the width of the image
height
- the height of the image
public void
setPixels(int  x, int  y, int  w, int  h,  ColorModel  model,                     byte  pixels[], int  off, 
int  scansize)
x
- left coordinate of rectangle
y
- top coordinte of rectangle
w
- width of rectangle
h
- height of rectangle
model
- color model for bits
pixels
- array of bits
off
- offset for first element
scansize
- number of elements per row.
public void
setPixels(int  x, int  y, int  w, int  h, ColorModel  model,
                    int  pixels[], int  off,  int  scansize)
x
- left coordinate of rectangle
y
- top coordinte of rectangle
w
- width of rectangle
h
- height of rectangle
model
- color model for bits
pixels
- array of bits
off
- offset for first element
scansize
- number of elements per row.
public void setProperties(Hashtable  props)
props
- a hashtable that maps image properties to their value
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)