Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 rotating an image
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Junaid2pac




PostPosted: Wed Jan 09, 2008 6:49 pm   Post subject: rotating an image

just wondering how u would rotate an image, i used this to get the picture
code:
g.drawImage(new ImageIcon("Name").getImage(), 0, 0, null);

If i incorparated angles, say 0 degrees equals normal, and 45 degrees, rotate image 45 degrees counterclockwise, what would i do to rotate a picture
Sponsor
Sponsor
Sponsor
sponsor
Ultrahex




PostPosted: Wed Jan 09, 2008 7:32 pm   Post subject: Re: rotating an image

Look at AffineTransformation's (I Think That Is How You Spell It...) and there is stuff there ... else you can do it manually using a databuffer.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: