Java awt生成图片消除锯齿 java-awt生成图片消除锯齿12345678//抗锯齿Graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);//g.drawImage(image, x, y, w,h, null); //利用iamge.getScaledInstance APIg.drawImage(image.getScaledInstance(w,h),BufferedImage.SCALE_SMOOTH),x,y,null);ImageIO.write(big,formateName, file); Java基础 #抗锯齿 Java awt生成图片消除锯齿 http://yoursite.com/post/da05d629.html/ Author Chase Wang Posted on December 18, 2017 Licensed under Java深拷贝和浅拷贝 Previous