Results 1 to 2 of 2
- 11-19-2008, 01:45 AM #1Member
- Join Date
- Sep 2008
- Rep Power
How can I translate, rotate and scale shapes like circles, rectangles, and lines
I know what it is theoretically. But in java how will I perform it. Dont need the code; just a jump start.
I know how to do these with points in matrices. But not with builtin functions such as drawEllipse, DrawRect and Drawline.
- 11-19-2008, 05:11 PM #2
I think your going to just have to take the verticie's and just calculate the transformation yourself and then redraw it. Is this application supposed to be like a game with rotating views? If so it would probably be alot easier on your system if you had the images already defined for certain key angles and just had a method call that image instead of calculating and redrawing it each time.
- By ankitmcgill in forum New To JavaReplies: 1Last Post: 11-16-2008, 04:46 AM
- By dele in forum Java SoftwareReplies: 0Last Post: 10-31-2008, 03:13 PM