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 Drawing images - mutable or immutable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Drawing images - mutable or immutable?" Watch "Drawing images - mutable or immutable?" New topic

Drawing images - mutable or immutable?

James Hodgkiss
Ranch Hand

Joined: Jan 22, 2004
Posts: 401
Does anyone know if it's considered better practice to convert mutable images to immutable before drawing to the canvas?

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

That really depends if you expect to need to change the image programmatically. In some cases, you don't have a choice, I believe if you resize an image it becomse immutable.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Drawing images - mutable or immutable?
jQuery in Action, 3rd edition