This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Image resizing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Image resizing" Watch "Image resizing" New topic

Image resizing

saad sal

Joined: Jul 31, 2005
Posts: 25
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

Joined: Feb 05, 2001
Posts: 17262

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.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Image resizing