dl
dl
io
dl_qr.h
浏览该文件的文档.
1
12
#pragma once
13
14
#include <string_view>
15
16
#include "
render/dl_image.h
"
18
namespace
dl::QR
19
{
21
enum class
Ecc
22
{
23
LOW
= 0,
// The QR Code can tolerate about 7% erroneous codewords
24
MEDIUM
,
// The QR Code can tolerate about 15% erroneous codewords
25
QUARTILE
,
// The QR Code can tolerate about 25% erroneous codewords
26
HIGH
,
// The QR Code can tolerate about 30% erroneous codewords
27
};
28
Image
*
EncodeString
(std::string_view str,
Ecc
ecc =
Ecc::LOW
);
29
}
30
dl_image.h
图像对象
dl::QR
二维码生成
定义
dl_qr.h:19
dl::QR::Ecc
Ecc
纠错等级
定义
dl_qr.h:22
dl::QR::Ecc::LOW
@ LOW
定义
dl_qr.h:23
dl::QR::Ecc::QUARTILE
@ QUARTILE
定义
dl_qr.h:25
dl::QR::Ecc::HIGH
@ HIGH
定义
dl_qr.h:26
dl::QR::Ecc::MEDIUM
@ MEDIUM
定义
dl_qr.h:24
dl::QR::EncodeString
Image * EncodeString(std::string_view str, Ecc ecc=Ecc::LOW)
dl::Image
Vector2< uint32_t, unsigned > Image
定义
dl_image.h:28
制作者
1.13.1