I have an applet which cuts and pastes an image in rectangle shape. I want
the same applet can cut and paste an image in RoundRectangle shape


Now we have :

Class java.awt.image.CropImageFilter

java.lang.Object
|
+----java.awt.image.ImageFilter
|
+----java.awt.image.CropImageFilter

public class CropImageFilter
extends ImageFilter

Now CropImageFilter is:

public CropImageFilter(int x,int y,int w,int h)

Constructs a CropImageFilter that extracts the absolute rectangular
region of pixels from
its source Image as specified by the x, y, w, and h parameters.

Parameters:
x - the x location of the top of the rectangle to be extracted
y - the y location of the top of the rectangle to be extracted
w - the width of the rectangle to be extracted
h - the height of the rectangle to be extracted

I need extends CropImageFilter.

I want to create :

public CropImageFilter(int x, int y,int w,int h, int z, int k)

in which

Parameters:
x - the x location of the top of the rectangle to be extracted
y - the y location of the top of the rectangle to be extracted
w - the width of the rectangle to be extracted
h - the height of the rectangle to be extracted
z - the horizontal diameter of the arc at the four corners
k - the vertical diameter of the arc at the four corners