public int[] image2Pixel(Image imgx,int w, int h)
{
int[] pixels = new int[w * h];
PixelGrabber pg = new PixelGrabber(imgx, 0, 0, w, h, pixels, 0, w);
try {
pg.grabPixels();
} catch (InterruptedException e)
{
element.jException("Cam : Fehler in Methode image2Pixel: "+ e.toString());
}