xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
结构体 | 静态 Public 成员函数 | 包函数 | 静态包函数 | 静态包属性
ZXing类 参考
类 ZXing 继承关系图:
Library

结构体

enum  BarcodeFormat
 
class  Result
 

静态 Public 成员函数

包函数

静态包函数

静态包属性

额外继承的成员函数

详细描述

在文件 zxing.xcs2 行定义.

成员函数说明

◆ generateQRCodeToARGB8888Bitmap()

static byte [] generateQRCodeToARGB8888Bitmap ( String  content,
int  widthOrHeight,
bool  isBmpFile 
)
static

在文件 zxing.xcs107 行定义.

107 {
108 return (byte[])generator_qr(ZXing.BarcodeFormat.QR_CODE, content, widthOrHeight, widthOrHeight, !isBmpFile, false);
109 }
Definition zxing.xcs:2

引用了 ZXing.BarcodeFormat.QR_CODE.

◆ generateQRCodeToARGB8888Pixels()

static int [] generateQRCodeToARGB8888Pixels ( String  content,
int  widthOrHeight,
bool  isBmpFile 
)
static

在文件 zxing.xcs111 行定义.

111 {
112 return (int[])generator_qr(ZXing.BarcodeFormat.QR_CODE, content, widthOrHeight, widthOrHeight, !isBmpFile, true);
113 }

引用了 ZXing.BarcodeFormat.QR_CODE.

◆ load()

static bool load ( )
staticpackage

在文件 zxing.xcs63 行定义.

63 {
64 try {
65 loadLibrary("ZXingCore");
66 return true;
67 } catch(Exception e) {
68 }
69
70 return false;
71 }
异常类
static final void loadLibrary(String)

引用了 Library.loadLibrary().

◆ read_qrcode()

Object cdecl read_qrcode ( ObjectPtr  buffer,
int  offset,
int  width,
int  height,
int  row_bytes,
int  pixel_bytes,
int  index_r,
int  index_g,
int  index_b,
ObjectPtr  num_bits,
ObjectPtr  status,
ObjectPtr  format 
)
package

被这些函数引用 readQRCodeFromARGB8888Buffer().

◆ readQRCodeFromARGB8888Buffer()

static Result readQRCodeFromARGB8888Buffer ( int []  data,
int  offset,
int  width,
int  height 
)
static

在文件 zxing.xcs95 行定义.

95 {
96 int num_bits = 5, status = 7;
98 byte [] rs = (byte [])ZXing.read_qrcode(data, offset, width, height, width * 4, 4, 1, 2, 3, num_bits, status, format);
99
100 if (rs != nilptr) {
101 return new Result(rs, format);
102 }
103
104 return nilptr;
105 }
Object cdecl read_qrcode(ObjectPtr buffer, int offset, int width, int height, int row_bytes, int pixel_bytes, int index_r, int index_g, int index_b, ObjectPtr num_bits, ObjectPtr status, ObjectPtr format)

引用了 ZXing.BarcodeFormat.FORMAT_COUNT , 以及 read_qrcode().

结构体成员变量说明

◆ bLoaded

bool bLoaded = new ZXing().load()
staticpackage

在文件 zxing.xcs61 行定义.