Camera/picture orientation in Android

前端 未结 1 1034
遇见更好的自我
遇见更好的自我 2020-12-19 11:58

I am working on an Android app that uses the phone\'s camera. When the picture is taken in a \"standard orientation\" (bottom of phone at the bottom or bottom of the phone t

相关标签:
1条回答
  • 2020-12-19 12:24

    You will need to set the rotation on the camera device in order to get the correctly rotated image. Try using -

    public void setRotation (int rotation)
    

    Check the sample code provided here

    0 讨论(0)
提交回复
热议问题