g.drawImage(image, 0, 0, width, height, 0, 0, width0, height0, null);
} else {
g.clearRect(0, 0, width, height);
g.drawImage(image, 0, 0, width, height, 0, 0, width0, height0, null);
}
PixelGrabber pixelGrabber = new PixelGrabber(g3d.platform.imageOffscreen,
0, 0, width, height, true);
try {
pixelGrabber.grabPixels();
} catch (InterruptedException e) {
// impossible?
return;
}
int[] buffer = (int[]) pixelGrabber.getPixels();
/*
int n = 0;
for (int i = 0; i < buffer.length; i++) {
if ((buffer[i] & 0xFF000000) != 0xFF000000) {
// System.out.println("testing " + i + " " + buffer[i]);