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
Post a Comment