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 / February 2007

Tip: Looking for answers? Try searching our database.

How to zoom in/out image and lines like google maps?

Thread view: 
au.danji@gmail.com - 23 Feb 2007 19:27 GMT
Hello all, could anybody tell me how to zoom in/out images
and lines?

I want to create a application like google maps or mapquest,
find the shortest path between two points in the image, then draw
the path in the image,

After drawing the shortest path, user need to zoom in/out the
direction map,
so I need to zoom in/out the .jpg image, from my research, seems that
I can use AffineTransform to zoom in/out the image, but how can I
redraw the
path(lines) in the picture?

Also, after zoom in, the user also need to see different parts of the
whole picture,
for example, use can click up/down/left/right button to see different
parts of the map?

Thank you for any ideas or example code.
Michael Rauscher - 23 Feb 2007 23:06 GMT
> Hello all, could anybody tell me how to zoom in/out images
> and lines?

see java.awt.Graphics2D#scale or java.awt.Graphics2D#setTransform
respectively.

Bye
Michael
sakcee@gmail.com - 24 Feb 2007 02:05 GMT
Get a Phd from Stanford with 4.0 GPA, thats how google does it

On Feb 23, 11:27 am, "au.da...@gmail.com" <au.da...@gmail.com> wrote:
> Hello all, could anybody tell me how to zoom in/out images
> and lines?
[quoted text clipped - 16 lines]
>
> Thank you for any ideas or example code.


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



©2008 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.