CropImageFilter

Name

CropImageFilter

[Graphic: Figure from the text]

Description

The CropImageFilter class creates a smaller image by cropping (i.e., extracting a rectangular region from) a larger image.

Class Definition

public class java.awt.image.CropImageFilter extends java.awt.image.ImageFilter {
 // Constructors public CropImageFilter (int x, int y, int width, int height); // Instance Methods public void setDimensions (int width, int height);
public void setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize);
public void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize);
public void setProperties (Hashtable properties);
}

Constructors

CropImageFilter

public CropImageFilter (int x, int y, int width, int height)

Instance Methods

setDimensions

public void setDimensions (int width, int height)

setPixels

public void setPixels (int x, int y, int width, int height, ColorModel model, byte[] pixels, int offset, int scansize)

public void setPixels (int x, int y, int width, int height, ColorModel model, int[] pixels, int offset, int scansize)

setProperties

public void setProperties (Hashtable properties)

See Also

ColorModel, Hashtable, ImageFilter