代码改变世界

随笔档案-2012年9月17日

android上画方框

2012-09-17 10:08 by omgee, 1864 阅读, 收藏,
摘要: 来自zxing开源码 public Rect getFramingRect() { if (framingRect == null) { if (camera == null) { return null; } Point screenResolution = configManager.getScreenResolution(); int width = screenResolution.x * 3 / 4; /* if (width < MIN_FRAME_WIDTH) { width = MIN_FRAME... 阅读全文