vxp
Class ImagePixelSource

java.lang.Object
  extended byvxp.PixelSource
      extended byvxp.ImagePixelSource

public class ImagePixelSource
extends PixelSource


Field Summary
 
Fields inherited from class vxp.PixelSource
kHeight, kWidth, vidWidth
 
Constructor Summary
ImagePixelSource(java.awt.image.BufferedImage _bi)
           
 
Method Summary
 int[] getPixel(int _x, int _y)
           
 
Methods inherited from class vxp.PixelSource
addVideoListener, getArray, getColorOrder, getDeviceList, getDeviceName, getImage, getImage, getPixel, getPixel, getPixelArray, getPixelArray, getPixelBrightness, getVideoHeight, getVideoWidth, grabFrame, idleIt, killSession, setDevice, setDevice, setImageType, setImageType, setInput, setNativeArrays, setPixel, setPixel, setPixel, setPixel, tellVideoListeners, videoSettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagePixelSource

public ImagePixelSource(java.awt.image.BufferedImage _bi)
Method Detail

getPixel

public int[] getPixel(int _x,
                      int _y)
Overrides:
getPixel in class PixelSource
Parameters:
_x -
_y -
Returns:
integer array with the offset in 0, the r in 1, the g in 2 and the b in 3