java.awt.image
Class CropImageFilter
java.lang.Object
|
+--java.awt.image.ImageFilter
|
+--java.awt.image.CropImageFilter
Currently this filter does almost nothing and needs to be implemented.
Author:- C. Brian Jones (cbj@gnu.org)
void | setDimensions(int width, int height)
|
void | setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int offset, int scansize)
|
void | setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int offset, int scansize)
|
void | setProperties(java.util.Hashtable props)
|
CropImageFilter
public CropImageFilter(int x, int y, int width, int height)
Construct a new CropImageFilter
instance.
Parameters:
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:
Currently this filter does almost nothing and needs to be implemented.