Class QrCode
QR Code renderer
Namespace: Terminaux.Writer.CyclicWriters.Simple
Assembly: Terminaux.dll
Syntax
public class QrCode : SimpleCyclicWriter
Constructors
| Edit this page View SourceQrCode()
Makes a new instance of the QR code renderer
Declaration
public QrCode()
Properties
| Edit this page View SourceBackgroundColor
Background color
Declaration
public Color BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ErrorCorrection
Specifies the QR code error correction level
Declaration
public QRCodeGenerator.ECCLevel ErrorCorrection { get; set; }
Property Value
| Type | Description |
|---|---|
| QRCodeGenerator.ECCLevel |
ForegroundColor
Foreground color
Declaration
public Color ForegroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Text
Text to encode to QR code
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UseColors
Whether to use colors or not
Declaration
public bool UseColors { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceRender()
Renders a QR code
Declaration
public override string Render()
Returns
| Type | Description |
|---|---|
| string | Rendered text that will be used by the renderer |