Android Zxing 扫描条码实现竖屏模式(portrait mode) 摄像头camera 旋转90度
最近在搞一个关于条形码扫描的软件,需求需要扫描时是竖屏。
最后在zxing官方wiki上面找到解决办法。基本思路如下。
There are 4 relative files:
1, manifest.xml, you need to make CaptureActivity portrait.
2, DecodeHandler.java, rotate data before buildLuminanceSource, it works becuase in YCbCr_420_SP and YCbCr_422_SP, the Y channel is planar and appears first
}<!--EndFragment--> 1 楼 yanyanquan 2012-04-18 我尝试过你的办法了。