Table of Contents

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 string

The contents of the QR code.

pTypeNumber int

The size of the QR code. Use 1-40 or leave empty to automatically detect. Will automatically be increased if size is insufficient.

pErrorCorrectLevelString string

The 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 int

The 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

int

ToString()

Returns the QR code as multi line string with X at dark places.

public override string ToString()

Returns

string

isDark(int, int)

Returns True if the square a the specified row/column is dark.

public bool isDark(int pRowCount, int pColumnCount)

Parameters

pRowCount int

0-based row

pColumnCount int

0-based column

Returns

bool

True if dark.

Exceptions

Exception

Throws exception if row or column out of bounds.