那是简化写法,上面代码等同于:
BufferedImage img = new BufferedImage(w, h, type);Graphics2d graphics2d = img.createGraphics();graphics2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);