How to make a rounded corner image in Java
<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>Thanks</p>

<p><img src="http://i.stack.imgur.com/fm0VA.png" alt="Schema"></p>

<p><strong>Edit</strong> : Added an image for information.</p>
