title: How to make a rounded corner image in Java
body: <p>I want to make a image with rounded corners. A image will come from input and I will make it rounded corner then save it. I use pure java. How can I do that? I need a function like</p>
  
  <pre><code>public void makeRoundedCorner(Image image, File outputFile){
  .....
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/fm0VA.png" alt="Schema"></p>
  
  <p><strong>Edit</strong> : Added an image for information.</p>