static long bufferedImageDataSize(BufferedImage img) { ret img == null ? 0 :img.getData().getDataBuffer().getSize()*4L; }