最終更新:2018-02-19 (月) 12:02:06 (2255d)
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.