andriod 蓝牙打印问题

在使用gprinter.jar库进行Android蓝牙打印与收银机对接时,遇到错误提示:'x + width must be <= bitmap.width()'。该错误源于矩阵操作中的尺寸检查问题。
摘要由CSDN通过智能技术生成

用网上的一个gprinter.jar开发蓝牙与收银机的对接打印,出现如下错误:x + width must be <= bitmap.width()

zs这一系列的错误都源自于矩阵的检测:

 /**
     * Shared code to check for illegal arguments passed to getPixels()
     * or setPixels()
     *
     * @param x left edge of the area of pixels to access
     * @param y top edge of the area of pixels to access
     * @param width width of the area of pixels to access
     * @param height height of the area of pixels to access
     * @param offset offset into pixels[] array
     * @param stride number of elements in pixels[] between each logical row
     * @param pixels array to hold the area of pixels being accessed
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值