描述
主要用于应用制作UI时,返回二维码预览图。
接口
string CalcBarCodeProperties(const char* jsonStr)
参数
参数名 | 必填 | 类型 | 说明 | 备注 |
---|---|---|---|---|
type | 是 | enum | 码类型 | E_BARCODE_TYPE |
data | 是 | string | 码值对应base64 | 示例:码值123456,则data=”MTIzNDU2” |
showText | 是 | bool | 是否显示文本 | 0:不显示 1:显示 |
返回值
类型 | 说明 | 备注 |
---|---|---|
json | 码属性 | imageData为详见SetBarCodeConfig() |
{
"object": "barCode",
"id": "",
"name": "",
"width": "0.95",
"height": "0.84",
"alignVerticalLayout": 0,
"base64": "MTIzNTY=",
"type": 141,
"class": 0,
"showText": 0,
"imageData": "imageDataBase64"
}
文档更新时间: 2024-12-03 14:51 作者:admin