This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 17249

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 - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
jQuery in Action, 2nd edition
subject: Drawing images - mutable or immutable?
Similar Threads
Strings and StringBuffers
string vs stringbuffer
StringBuffer and String returned from a method doubt
String Vs String Buffer