Can't you use GeneralPath's transform method?
I haven't tried it so I don't know if this will produce the desired effect, but it sounds like what you want.
 

transform

public void transform(AffineTransform at)
Transforms the geometry of this path using the specified AffineTransform. The geometry is transformed in place, which permanently changes the boundary defined by this object.
Parameters:
at - the AffineTransform used to transform the area
-----Original Message-----
From: Ted Hill [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 13:22
To: [EMAIL PROTECTED]
Subject: [JAVA2D] Shape question

Hello,
 
If I have a closed Polygon or GeneralPath, is there some way to 'grow' it or 'shrink' it?
 
For example, if my GeneralPath were circular, is there some way to get both a big circle and little circle from it, where they all share the same center point?
 
What if the Polygon or GeneralPath have an 'irregular' shape, how would I grow and shrink them?
 
Thank you,
 
Ted Hill


Visit our website at http://www.rm.com


Standard Disclaimer:This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information only for the intended purpose. Internet communications are not secure and therefore RM does not accept legal responsibility for the contents of this message. Any views or opinions presented are only those of the author and not those of RM. If this email has come to you in error please delete it and any attachments. Please note that RM may intercept incoming and outgoing e-mail communications.



Reply via email to