最終更新:2018-02-19 (月) 12:02:06 (243d)  

Camera.setDisplayOrientation はてなブックマークを見る
Top / Camera.setDisplayOrientation

Set the clockwise rotation of preview display in degrees. This affects the preview frames and the picture displayed after snapshot.

Note that preview display of front-facing cameras is flipped horizontally before the rotation, that is, the image is reflected along the central vertical axis of the camera sensor

https://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)

メモ

  • 表示と撮影される写真にのみ反映。onPreviewFrameには反映されない
  • This does not affect the order of byte array passed in onPreviewFrame(byte[], Camera), JPEG pictures, or recorded videos.