-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathEnumerations.cs
More file actions
105 lines (89 loc) · 1.89 KB
/
Enumerations.cs
File metadata and controls
105 lines (89 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
namespace Waher.Content.QR
{
/// <summary>
/// QR Code correction level.
/// </summary>
public enum CorrectionLevel
{
/// <summary>
/// Low (7%)
/// </summary>
L = 0,
/// <summary>
/// Medium (15%)
/// </summary>
M = 1,
/// <summary>
/// Quartile (25%)
/// </summary>
Q = 2,
/// <summary>
/// High (30%)
/// </summary>
H = 3
}
/// <summary>
/// QR Code encoding mode
/// </summary>
public enum EncodingMode
{
/// <summary>
/// Numeric (0-9)
/// </summary>
Numeric = 0b0001,
/// <summary>
/// Alphanumeric (0-9, A-Z, space, $, %, *, +, -, ., /, and :
/// </summary>
Alphanumeric = 0b0010,
/// <summary>
/// Bytes, by default, from the ISO-8859-1 character set. (Some decoders can read UTF-8)
/// </summary>
Byte = 0b0100,
/// <summary>
/// Shift JIS character set
/// </summary>
Kanji = 0b1000,
/// <summary>
/// Extended Channel Interpretation, allows specification of character set
/// </summary>
Eci = 0b0111
}
/// <summary>
/// Type of dot in code.
/// </summary>
public enum DotType
{
/// <summary>
/// Code background color
/// </summary>
CodeBackground = 0,
/// <summary>
/// Code foreground color
/// </summary>
CodeForeground = 1,
/// <summary>
/// Finder Marker background color
/// </summary>
FinderMarkerBackground = 2,
/// <summary>
/// Finder Marker foreground color (outer)
/// </summary>
FinderMarkerForegroundOuter = 3,
/// <summary>
/// Finder Marker foreground color (inner)
/// </summary>
FinderMarkerForegroundInner = 5,
/// <summary>
/// Alignment Marker background color
/// </summary>
AlignmentMarkerBackground = 6,
/// <summary>
/// Alignment Marker foreground color (outer)
/// </summary>
AlignmentMarkerForegroundOuter = 7,
/// <summary>
/// Alignment Marker foreground color (inner)
/// </summary>
AlignmentMarkerForegroundInner = 9
}
}