Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.image

Class CropImageFilter

java.lang.Object
|
+--java.awt.image.ImageFilter
   |
   +--java.awt.image.CropImageFilter


public class CropImageFilter

extends ImageFilter


Currently this filter does almost nothing and needs to be implemented.

Author:

Constructor Summary

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

Construct a new CropImageFilter instance.

Method Summary

voidsetDimensions(int width, int height)

An ImageProducer indicates the size of the image being produced using this method.
voidsetPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int offset, int scansize)

This function delivers a rectangle of pixels where any pixel(m,n) is stored in the array as a byte at index (n * scansize + m + offset).
voidsetPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int offset, int scansize)

This function delivers a rectangle of pixels where any pixel(m,n) is stored in the array as an int at index (n * scansize + m + offset).
voidsetProperties(java.util.Hashtable props)

An ImageProducer can set a list of properties associated with this image by using this method.

Constructor Details

CropImageFilter

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

Construct a new CropImageFilter instance.

Parameters:


Method Details

setDimensions

public void setDimensions(int width, int height)

An ImageProducer indicates the size of the image being produced using this method. This filter overrides this method in order to set the dimentions to the size of the cropped rectangle instead of the size of the image.

Parameters:


setPixels

public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int offset, int scansize)

This function delivers a rectangle of pixels where any pixel(m,n) is stored in the array as a byte at index (n * scansize + m + offset).

Parameters:


setPixels

public void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int offset, int scansize)

This function delivers a rectangle of pixels where any pixel(m,n) is stored in the array as an int at index (n * scansize + m + offset).

Parameters:


setProperties

public void setProperties(java.util.Hashtable props)

An ImageProducer can set a list of properties associated with this image by using this method.
FIXME - What property is set for this class?

Parameters: