Results 1 to 4 of 4
Thread: AffineTransform
- 03-20-2012, 11:52 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 42
- Rep Power
- 0
AffineTransform
Hey, I've been experimenting with rotating and scaling BufferedImages with the affineTransform, but I wasn't sure how to do both a scale and rotation at the same time.
This is an extract of my code:
At the moment it seems to be ignoring the first thing (scale) and only applying the second (rotation). How do I get it to do both?Java Code:collisionObjAt = new AffineTransform(); collisionObjAt.setToScale(size, size); collisionObjAt.setToRotation(theta); collisionObjTransform = new AffineTransformOp(collisionObjAt, AffineTransformOp.TYPE_BILINEAR);
Thanks :)
- 03-21-2012, 12:15 AM #2
Re: AffineTransform
Moved from New to Java
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 03-21-2012, 12:19 AM #3
- 03-21-2012, 05:56 AM #4
Member
- Join Date
- Jul 2011
- Posts
- 42
- Rep Power
- 0
Similar Threads
-
Problem with AffineTransform
By pradeep.badam in forum AWT / SwingReplies: 0Last Post: 01-06-2010, 09:06 AM -
JScrollPane and AffineTransform
By JReacher in forum New To JavaReplies: 0Last Post: 12-17-2009, 02:47 PM -
[SOLVED] AffineTransform
By robocop in forum New To JavaReplies: 2Last Post: 03-25-2009, 05:54 PM -
AffineTransform help
By tones in forum New To JavaReplies: 4Last Post: 12-19-2008, 07:24 AM -
affineTransform rotation
By MichYer in forum AWT / SwingReplies: 0Last Post: 07-18-2007, 08:55 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks