为什么我的相机preVIEW显示水平,而不是垂直? [英] Why My Camera preview shows Horizontal instead of the Vertical?
本文介绍了为什么我的相机preVIEW显示水平,而不是垂直?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的Android摄像头应用程序,如果我修复屏幕的景观,然后在横向模式下它似乎因为它必须要看到。但如果我解决它的画像,然后相机preVIEW被看作水平。 为什么是怎么回事?和最新的Sollution吧?
解决方案
Camera.Parameters参数= mCamera.getParameters();
parameters.set(方向,肖像);
mCamera.setParameters(参数);
您可以致电启动preVIEW()之后,这个:)
In My Android Camera Application if i fix the Screen to the landscape then In landscape mode it seems as it have to be seen. but if i fix it to the portrait then the Camera preview is seen to the horizontal. Why it is Happening ? and Whats the Sollution for it ??
解决方案
Camera.Parameters parameters = mCamera.getParameters();
parameters.set("orientation", "portrait");
mCamera.setParameters(parameters);
You can call startPreview() after this :)
这篇关于为什么我的相机preVIEW显示水平,而不是垂直?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文