PixelGrabber.grabPixels
Class Overview | Class Members |
This Package |
All Packages
public boolean grabPixels() throws InterruptedException
Returns
true if the pixels were successfully grabbed, false on
abort, error or timeout
Description
Request the Image or ImageProducer to start delivering pixels and
wait for all of the pixels in the rectangle of interest to be
delivered.
Exceptions
InterruptedException
Another thread has interrupted this thread.
public synchronized boolean grabPixels( long ms ) throws InterruptedException
Parameters
- ms
- the number of milliseconds to wait for the image pixels
to arrive before timing out
Returns
true if the pixels were successfully grabbed, false on
abort, error or timeout
Description
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.
Exceptions
InterruptedException
Another thread has interrupted this thread.