title: How can i draw smooth buffered images in java?
body: <p>We're making a simple 2D game in Java. Every time we draw images they are jagged and look awful. We can anti-alias the text, but our images are in non-vector formats, so we can not apply anti-aliasing to them. We want to smooth our .JPG images (they were created with the maximum quality in Photoshop): is there a way to programmatically accomplish this?</p>
  
  <p><img src="https://i.stack.imgur.com/1drhM.jpg" alt="enter image description here"></p>
  
  <pre><code>BufferedImage goplaybut = ImageIO.read(getClass().getResourceAsStream("/gameover/goplaybut.jpg"));
  
  g.drawImage();
  
  Graphics2D g2d = (Graphics2D) g;
  g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  </code></pre>