File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Dec 23, 2003
Oct 30, 2004 13:07:00
I want to zoom in an image. I want user to click a point in the image, then I need to enlarge the image based on the point user click. That point should be the center in the new enlarged image.
How could I do that ?
Joined: Nov 11, 2003
Nov 01, 2004 09:53:00
The ButtonSizing class posted by Craig Wood may help get you started, particularly method private Image getScaledImage(
image, double scale).
Add on a MouseListener to get the
and you should be able to size your image from the x/y of the click from the
Hope it works for you.
Don't get me started about those stupid
subject: image zoom
General Question Regarding Image Processing
Resize Image Icon
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014