< prev index next >

src/java.desktop/windows/classes/sun/awt/windows/WRobotPeer.java

Print this page

        

*** 73,84 **** return getRGBPixels(new Rectangle(x, y, 1, 1))[0]; } @Override public int [] getRGBPixels(Rectangle bounds) { ! int pixelArray[] = new int[bounds.width*bounds.height]; getRGBPixels(bounds.x, bounds.y, bounds.width, bounds.height, pixelArray); return pixelArray; } ! private native void getRGBPixels(int x, int y, int width, int height, int pixelArray[]); } --- 73,84 ---- return getRGBPixels(new Rectangle(x, y, 1, 1))[0]; } @Override public int [] getRGBPixels(Rectangle bounds) { ! int[] pixelArray = new int[bounds.width*bounds.height]; getRGBPixels(bounds.x, bounds.y, bounds.width, bounds.height, pixelArray); return pixelArray; } ! private native void getRGBPixels(int x, int y, int width, int height, int[] pixelArray); }
< prev index next >