Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image resizing

 
saad sal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What i would like to know is whether we can resize a picture on a canvas screen. I have an Image object. I display it on the canvas. Now when the user presses a button, i want the image to zoom in. Is there any way to zoom in the image.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are ways to resize the image. However, you should note that the new image will not have a transparency background. It becomes an immutable image and if you had a transparency set before, it gets lost.

I don't remember the specific code to do this, but know that I got it here in this forum. So do a search above for "resize image" and I am sure you will find that thread.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic