Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I make a 2D-graphics with zoom levels seen from above?

Status
Not open for further replies.

zappsweden

Programmer
Aug 29, 2001
16
SE
I am currently doing a F1-management sim in Java.
I want to be able to view the whole track or zoom in up to 500% and scroll on the zoomed in views. 100% zoom is viewing the whole track. I am currently using a JScrollpane where I will put the bitmaps.
Is that the best option?
Is there any built in zoom option(of a bitmap) in Graphics2D or any other class?
If 500% is the maximum zoom, should I make 5x5=25 different bitmaps to get best graphics at maximum zoom in?
 
Also, is it realistic to make a 2D-game like without the game being to slow or do I need to JCC it and compile a c-code and run it with a garbage collector?
I am counting on atleist 2GHz processors with my game which will probably be standard in 2 years when the game is ready.
Please motivate your answer not just saying: "Way to slow" or "I am sure it will work". You should hopefully have tried some java graphics or have seen it in reality to backup your answer.
 
go over to Gamedev.net

they have resources and a java forum

you'll get more attention there

Lupine
RobertCorrina@patownsend.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top