Camera capture image rotate to portrait - Xamarin android
问题 I have a xamarin.android project which have a custom camera Preview. Whenever I initialize the camera , it will open as landscape default. So I changed the orientation from SurfaceChanged method like this. private int setCameraDisplayOrientation(Activity mContext, int v) { var degrees = 0; var orientation =0; Display display = mContext.GetSystemService(Context.WindowService).JavaCast<IWindowManager>().DefaultDisplay; Camera.CameraInfo info = new Camera.CameraInfo(); Camera.GetCameraInfo(v,