我正在使用自定義攝像頭和表面視圖。但問題是相機方向不能以正確的模式顯示。攝像頭方向未以正確模式顯示android
我試着用這個代碼:
Camera.Parameters p = c.getParameters();
parameters.set("orientation", "portrait");
parameters.set("rotation", 90);
c.setParameters(p);
,也與此代碼:
mCamera.setDisplayOrientation(mRotation);
But no effect. If there any other solution for this. Please tell me.
我通過代碼去了,我認爲這將有助於你[查看該] [1] [1]:http://stackoverflow.com/questions/4645960/how-to-set- android-camera-orientation-properly –