Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

java 2d + image rendering

Thread view: 
gangdv@gmail.com - 05 Apr 2007 18:17 GMT
I was just wondering if anyone can help me with a little hobby project
I have. I am trying to basically simulate conway's game of life,
except that I allow the creatures to move without the need of a grid
(making quite complicated). But since I want this to seem pretty cool,
I was wondering if anyone can help me with my main problem, which is
using images to represent the creatures. I know enough java 2d code to
create a basic blank window and change the background color, and also
how to draw various shapes. I also know a little about translations,
but I was just wondering if anyone could give some code that does
something basic with an image, such as loading it and rotating it?
Thanks!

-gangdv
Knute Johnson - 05 Apr 2007 18:31 GMT
> I was just wondering if anyone can help me with a little hobby project
> I have. I am trying to basically simulate conway's game of life,
[quoted text clipped - 9 lines]
>
> -gangdv

Look at ImageIO.read() for loading images from file or URL and use
Graphics2D.rotate() to draw your images rotated.

Signature

Knute Johnson
email s/nospam/knute/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.