默认的大小是 以下这4个参数
// private static final int MIN_FRAME_WIDTH = 240;
// private static final int MIN_FRAME_HEIGHT = 240;
// private static final int MAX_FRAME_WIDTH = 480;
// private static final int MAX_FRAME_HEIGHT = 360;
根据屏幕大小调整 大家可以增大这些数值 : 最小的宽 高 ; 最大宽高
参数实际在 getFramingRect() 方法中起作用
以下是原本Demo中提供的
/**
-
Calculates the framing rect which the UI should draw to show the user where to place the
-
barcode. This target helps with alignment as well as forces the user to hold the device
-
far enough away to ensure the image will be in focus.
-
@return The rectangle to draw on screen in window coordinates.
*/
public Rect getFramingRect() {
Point screenResolution = configManager.getScreenResolution();
if (framingRect == null) {
if (camera == null)