swingwt.awt.image
Class PixelGrabber
java.lang.Object
swingwt.awt.image.PixelGrabber
- All Implemented Interfaces:
- ImageConsumer
- public class PixelGrabber
- extends java.lang.Object
- implements ImageConsumer
TODO: implement
Constructor Summary |
PixelGrabber(Image img,
int x,
int y,
int w,
int h,
boolean forceRGB)
|
PixelGrabber(Image img,
int x,
int y,
int w,
int h,
int[] pix,
int off,
int scansize)
|
PixelGrabber(ImageProducer ip,
int x,
int y,
int w,
int h,
int[] pix,
int off,
int scansize)
|
Method Summary |
void |
abortGrabbing()
|
ColorModel |
getColorModel()
|
int |
getHeight()
|
java.lang.Object |
getPixels()
|
int |
getStatus()
|
int |
getWidth()
|
boolean |
grabPixels()
|
boolean |
grabPixels(long ms)
|
void |
imageComplete(int status)
|
void |
setColorModel(ColorModel model)
|
void |
setDimensions(int width,
int height)
|
void |
setHints(int hintflags)
|
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize)
|
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize)
|
void |
setProperties(java.util.Hashtable props)
|
void |
startGrabbing()
|
int |
status()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PixelGrabber
public PixelGrabber(Image img,
int x,
int y,
int w,
int h,
boolean forceRGB)
PixelGrabber
public PixelGrabber(Image img,
int x,
int y,
int w,
int h,
int[] pix,
int off,
int scansize)
PixelGrabber
public PixelGrabber(ImageProducer ip,
int x,
int y,
int w,
int h,
int[] pix,
int off,
int scansize)
setDimensions
public void setDimensions(int width,
int height)
- Specified by:
setDimensions
in interface ImageConsumer
setProperties
public void setProperties(java.util.Hashtable props)
- Specified by:
setProperties
in interface ImageConsumer
setColorModel
public void setColorModel(ColorModel model)
- Specified by:
setColorModel
in interface ImageConsumer
setHints
public void setHints(int hintflags)
- Specified by:
setHints
in interface ImageConsumer
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize)
- Specified by:
setPixels
in interface ImageConsumer
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize)
- Specified by:
setPixels
in interface ImageConsumer
imageComplete
public void imageComplete(int status)
- Specified by:
imageComplete
in interface ImageConsumer
abortGrabbing
public void abortGrabbing()
getColorModel
public ColorModel getColorModel()
getHeight
public int getHeight()
getPixels
public java.lang.Object getPixels()
getStatus
public int getStatus()
getWidth
public int getWidth()
grabPixels
public boolean grabPixels()
grabPixels
public boolean grabPixels(long ms)
startGrabbing
public void startGrabbing()
status
public int status()