Class QRCodeEncoder
Generates QR Code symbols from input data, computing version, mask, and Reed-Solomon
error correction, and renders the resulting matrix into a report metafile.
Inheritance
QRCodeEncoder
Assembly: Reportman.Reporting.dll
Syntax
public class QRCodeEncoder
Constructors
View Source
QRCodeEncoder()
Declaration
Properties
View Source
QRCodeBackgroundColor
Declaration
public virtual Color QRCodeBackgroundColor { get; set; }
Property Value
View Source
QRCodeEncodeMode
Declaration
public virtual QRCodeEncoder.ENCODE_MODE QRCodeEncodeMode { get; set; }
Property Value
View Source
QRCodeErrorCorrect
Declaration
public virtual QRCodeEncoder.ERROR_CORRECTION QRCodeErrorCorrect { get; set; }
Property Value
View Source
QRCodeForegroundColor
Declaration
public virtual Color QRCodeForegroundColor { get; set; }
Property Value
View Source
QRCodeScale
Declaration
public virtual int QRCodeScale { get; set; }
Property Value
View Source
QRCodeVersion
Declaration
public virtual int QRCodeVersion { get; set; }
Property Value
Methods
View Source
AsciiStringToByteArray(string)
Declaration
public static byte[] AsciiStringToByteArray(string str)
Parameters
| Type |
Name |
Description |
| string |
str |
|
Returns
View Source
EncodeInMetafile(MetaFile, int, int, int, string, Encoding)
Encode the content using the encoding scheme given
Declaration
public virtual void EncodeInMetafile(MetaFile metafile, int posx, int posy, int modul, string content, Encoding encoding)
Parameters
View Source
FromASCIIByteArray(byte[])
Declaration
public static string FromASCIIByteArray(byte[] characters)
Parameters
| Type |
Name |
Description |
| byte[] |
characters |
|
Returns
View Source
FromUnicodeByteArray(byte[])
Declaration
public static string FromUnicodeByteArray(byte[] characters)
Parameters
| Type |
Name |
Description |
| byte[] |
characters |
|
Returns
View Source
IsUniCode(string)
Declaration
public static bool IsUniCode(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
View Source
Reads a number of characters from the current source Stream and writes the data to the target array at the specified index.
Declaration
public static int ReadInput(Stream sourceStream, sbyte[] target, int start, int count)
Parameters
| Type |
Name |
Description |
| Stream |
sourceStream |
The source Stream to read from.
|
| sbyte[] |
target |
Contains the array of characteres read from the source Stream.
|
| int |
start |
The starting index of the target array.
|
| int |
count |
The maximum number of characters to read from the source Stream.
|
Returns
| Type |
Description |
| int |
The number of characters read. The number will be less than or equal to count depending on the data available in the source Stream. Returns -1 if the end of the stream is reached.
|
View Source
URShift(int, int)
Performs an unsigned bitwise right shift with the specified number
Declaration
public static int URShift(int number, int bits)
Parameters
| Type |
Name |
Description |
| int |
number |
Number to operate on
|
| int |
bits |
Ammount of bits to shift
|
Returns
| Type |
Description |
| int |
The resulting number from the shift operation
|
View Source
UnicodeStringToByteArray(string)
Declaration
public static byte[] UnicodeStringToByteArray(string str)
Parameters
| Type |
Name |
Description |
| string |
str |
|
Returns
View Source
WriteStackTrace(Exception, TextWriter)
Declaration
public static void WriteStackTrace(Exception throwable, TextWriter stream)
Parameters
View Source
calQrcode(byte[])
Declaration
public virtual bool[][] calQrcode(byte[] qrcodeData)
Parameters
| Type |
Name |
Description |
| byte[] |
qrcodeData |
|
Returns
| Type |
Description |
| bool[][] |
|
View Source
calStructureappendParity(sbyte[])
Declaration
public virtual int calStructureappendParity(sbyte[] originaldata)
Parameters
| Type |
Name |
Description |
| sbyte[] |
originaldata |
|
Returns
View Source
setStructureappend(int, int, int)
Declaration
public virtual void setStructureappend(int m, int n, int p)
Parameters