PixelGrabber Members

PixelGrabber Members

Class Overview | This Package | All Packages

Constructors
Name Description
PixelGrabber(Image, int, int, int, int, boolean) Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image.
PixelGrabber(Image, int, int, int, int, int[], int, int) Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the specified image into the given array.
PixelGrabber(ImageProducer, int, int, int, int, int[], int, int) Create a PixelGrabber object to grab the (x, y, w, h) rectangular section of pixels from the image produced by the specified ImageProducer into the given array.

Methods
Name Description
abortGrabbing() Request the PixelGrabber to abort the image fetch.
getColorModel() Get the ColorModel for the pixels stored in the array.
getHeight() Get the height of the pixel buffer (after adjusting for image height).
getPixels() Get the pixel buffer.
getStatus() Return the status of the pixels.
getWidth() Get the width of the pixel buffer (after adjusting for image width).
grabPixels() Request the Image or ImageProducer to start delivering pixels and wait for all of the pixels in the rectangle of interest to be delivered.
grabPixels(long) Request the Image or ImageProducer to start delivering pixels and wait for all of the pixels in the rectangle of interest to be delivered or until the specified timeout has elapsed.
imageComplete(int) The imageComplete method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
setColorModel(ColorModel) The setColorModel method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
setDimensions(int, int) The setDimensions method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
setHints(int) The setHints method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
setPixels(int, int, int, int, ColorModel, byte[], int, int) The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
setPixels(int, int, int, int, ColorModel, int[], int, int) The setPixels method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
setProperties(Hashtable) The setProperties method is part of the ImageConsumer API which this class must implement to retrieve the pixels.
startGrabbing() Request the PixelGrabber to start fetching the pixels.
status() DEPRECATED: Replaced by getStatus().