File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How create 'zoom' in JPanel ?

 
Andrzej Sydor
Greenhorn
Posts: 8
Android Java Python
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have image in JPanel ?

How create zoom on the image?
 
Rob Spoor
Sheriff
Pie
Posts: 20369
44
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic