static Rect imgRect(BufferedImage img) { ret img == null ? : new Rect(0, 0, img.getWidth(), img.getHeight()); } static Rect imgRect(WidthAndHeight img) { ret img == null ? : new Rect(0, 0, img.getWidth(), img.getHeight()); }