A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
Swing / AWT / SWT
Joined: Dec 23, 2003
Oct 30, 2004 13:07:00
I want to zoom in an
. 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.
Have you checked out
subject: image zoom
Resize Image Icon
General Question Regarding Image Processing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015