Android camera resulted image should be rotated after the capture?

后端 未结 4 1871
攒了一身酷
攒了一身酷 2020-12-15 17:29

I\'m writing an Android application that uses the camera. I\'m setting camera display orientation to 90, my activity is in a portrait orientation:

camera.se         


        
4条回答
  •  -上瘾入骨i
    2020-12-15 18:18

    I had the same problem like you, but i've fix it.
    You should use the same code:

    Camera.Parameters parameters = camera.getParameters();
    parameters.setRotation(90);
    camera.setParameters(parameters);
    

    I hope you can use this code too.

提交回复
热议问题