File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How create 'zoom' in JPanel ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How create Watch "How create New topic
Author

How create 'zoom' in JPanel ?

Andrzej Sydor
Greenhorn

Joined: Apr 12, 2011
Posts: 8


I have image in JPanel ?

How create zoom on the image?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Welcome to the Ranch!

Zooming is actually little more than a visual trick. Just scale the image and cut off the parts you don't want in the zoomed in version.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How create 'zoom' in JPanel ?