摘要:
在应用开发过程中,Camera成像有的手机平板出现卧倒(成90度)的情况,可能后置是正常的,而前置就出现卧倒。针对这样仔细查找了一些资料,最终得出,最后还是在SDK中找到了setDisplayOrientation()这个方法,主要是根据摄像头的自身信息与设备的翻转得到相应的翻转角度。在加上摄像头的参数设置中加上后,在各种卧倒的设备上也显示正常了,在这分享给大家。// make the camera image show in the same orientation as the displaypublic static void setCameraDisplayOrientation(Ac 阅读全文
posted @ 2012-06-14 09:26
Mayola
阅读(2972)
评论(0)
推荐(0)
浙公网安备 33010602011771号