阅读背景:

在没有OutOfMemoryError或缩减的情况下在Android中旋转图像

来源:互联网 

Basically I'm trying to rotate a Bitmap (from an image) in an Android App. The reason why I want to do this is that a picture taken from the camera (through an intent) is displayed horizontally even if it's captured vertically, and the orientation is kept as metadata on the image. Correct me if in wrong. The problem is, however, that the image will take up a lot of memory when loaded in, if taken on a phone with a reasonably good camera, and I haven't found a way to rotate and save it without the risk of getting OutOfMemoryError. The code below is where i:Basically I'm trying to rotate a Bitmap (from a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: