static bool hasTransparency(BufferedImage img) { ret img.getColorModel().hasAlpha(); }