摘要: 最近做项目的时候,制码方提供了一个制码实例中,对二维码的绘制部分使用Line,在电脑上显示速度还不错,但到了手机上速度让人难以忍受。所以写了这篇文章,介绍一种使用WriteableBitmap来显示二维码的方法。(本文制码库以zxing作为介绍)具体代码如下:1、高效代码 1 public static WriteableBitmap CreateBarcode() 2 { 3 WriteableBitmap wb = null; 4 QRCodeWriter writer = new QRCodeWriter(); 5 ByteMatrix bitMatrix... 阅读全文
posted @ 2012-10-16 17:23 ╰→劉じ尛鶴 阅读(1872) 评论(0) 推荐(0) 编辑