This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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: 17271

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
Have you checked out Aspose?
subject: Drawing images - mutable or immutable?
It's not a secret anymore!