I need to write servlet which will take image URL and Mask URL as inputs and generate image with rounded corners and mask applied to it.

I am very new to Java. I am going through java.awt.image package to see what ready to use functionality is offered by this package.

Please lead me through java packages and specific functions you feel I can use in my servlet so that I can read details of that specific class/function since packages have number of classes and functions.

Thank you.