title: Problem with fillRoundRect seemingly not rendering correctly
body: <p>I've got a very simple image generator program that just draws a rounded rectangle on a BufferedImage and then saves the image to a file.</p>
  
  <pre><code>try
  {
      BufferedImage image = new BufferedImage(40, 40, BufferedImage.TYPE_INT_ARGB);
  
      Graphics2D g2 = image.createGraphics();
      g2.setPaint(Color.blue);
  
      g2.fillRoundRect(0, 0, 39, 39, 6, 6);
  
      File file = new File("C:\\test.png");
  
      ImageIO.write(image, "png", file);
  }
  catch( IOException e )
  {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>Everything works as expected whenever I draw the rectangle using drawRoundRect:</p>
  
  <p><img src="https://i.stack.imgur.com/Yyd5z.png" alt="enter image description here"></p>
  
  <p>However, when I use fillRoundRect the rectangle appears to be cropped on the right and bottom sides:</p>
  
  <p><img src="https://i.stack.imgur.com/5kpTu.png" alt="enter image description here"></p>
  
  <p>I've tried making the BufferedImage itself larger and keeping the rectangle the same size, but the problem still exists. Also, no matter what rectangular width and height or arc width and height I choose, the 4 corners never look the same (though the larger it gets, the less pronounced it seems to be).</p>
  
  <p>Is this a common problem, or am I perhaps misunderstanding the rounded rectangle?</p>
  
  <p>Any help or suggestions would be much appreciated.</p>
  
  <p>Thanks,</p>
  
  <p>B.J.</p>