image processing - Android rotate bitmap without making a copy -


is there way rotate bitmap without making copy of it? or maybe imageview that's holding bitmap? right i've got similar to:

bitmap bm = bitmapfactory.decodefile(... // orientation matrix m = new matrix m.postrotate(orientation) bitmap new = bitmap.createfrombitmap(bm, ..., m); 

there algorithmically isnt easy way of performing rotation without separate new place put rotated copy, deleting current (non-rotated) copy. can think of potential algorithm have have 1 pixel' worth of memory have spend more time figuring out actual algorithm.

also @ stackoverflow link: algorithm rotate image 90 degrees in place? (no memory)


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -