File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 17276

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 - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Image resizing
It's not a secret anymore!