equal
deleted
inserted
replaced
392 * @param x X position of pixel |
392 * @param x X position of pixel |
393 * @param y Y position of pixel |
393 * @param y Y position of pixel |
394 * @return Color of the pixel |
394 * @return Color of the pixel |
395 */ |
395 */ |
396 public synchronized Color getPixelColor(int x, int y) { |
396 public synchronized Color getPixelColor(int x, int y) { |
|
397 checkScreenCaptureAllowed(); |
397 AffineTransform tx = GraphicsEnvironment. |
398 AffineTransform tx = GraphicsEnvironment. |
398 getLocalGraphicsEnvironment().getDefaultScreenDevice(). |
399 getLocalGraphicsEnvironment().getDefaultScreenDevice(). |
399 getDefaultConfiguration().getDefaultTransform(); |
400 getDefaultConfiguration().getDefaultTransform(); |
400 x = (int) (x * tx.getScaleX()); |
401 x = (int) (x * tx.getScaleX()); |
401 y = (int) (y * tx.getScaleY()); |
402 y = (int) (y * tx.getScaleY()); |