Class QRcode
- Namespace
- PolarChart
- Assembly
- PolarChart.dll
This class is used to create QR codes.
public class QRcode
- Inheritance
-
QRcode
- Inherited Members
- Extension Methods
Constructors
QRcode(string, int, string)
Constructor to create a new QR code.
public QRcode(string pData, int pTypeNumber = 0, string pErrorCorrectLevelString = "M")
Parameters
pData
stringThe contents of the QR code.
pTypeNumber
intThe size of the QR code. Use 1-40 or leave empty to automatically detect. Will automatically be increased if size is insufficient.
pErrorCorrectLevelString
stringThe type of error-correction. Use 'L', 'M', 'Q', 'H'
Methods
GetImage(int)
Gets an image as PNG binary data.
public string GetImage(int pBlockWidthFactor = 3)
Parameters
pBlockWidthFactor
intThe size in pixels of a single square.
Returns
- string
The binary data as string of the png image.
ModuleCount()
Returns the size (width/hight) in 'modules' (squares) of the QR code.
public int ModuleCount()
Returns
ToString()
Returns the QR code as multi line string with X at dark places.
public override string ToString()
Returns
isDark(int, int)
Returns True if the square a the specified row/column is dark.
public bool isDark(int pRowCount, int pColumnCount)
Parameters
Returns
- bool
True if dark.
Exceptions
- Exception
Throws exception if row or column out of bounds.