-
Cut & Paste an image in RoundRectangle way
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks