Class QrCodeEncodingOptions
The class holds the available options for the QrCodeWriter
public class QrCodeEncodingOptions : EncodingOptions
- Inheritance
-
QrCodeEncodingOptions
- Inherited Members
Constructors
QrCodeEncodingOptions()
public QrCodeEncodingOptions()
Properties
CharacterSet
Specifies what character encoding to use where applicable (type string)
public string CharacterSet { get; set; }
Property Value
DisableECI
Explicitly disables ECI segment when generating QR Code That is against the specification of QR Code but some readers have problems if the charset is switched from ISO-8859-1 (default) to UTF-8 with the necessary ECI segment. If you set the property to true you can use UTF-8 encoding and the ECI segment is omitted.
public bool DisableECI { get; set; }
Property Value
ErrorCorrection
Specifies what degree of error correction to use, for example in QR Codes. Type depends on the encoder. For example for QR codes it's type ErrorCorrectionLevel.
public ErrorCorrectionLevel ErrorCorrection { get; set; }
Property Value
QrCompact
Specifies whether to use compact mode for QR code (type bool, or "true" or "false" Please note that when compaction is performed, the most compact character encoding is chosen for characters in the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by means of the CharacterSet encoding hint.
public bool QrCompact { get; set; }
Property Value
QrVersion
Specifies the exact version of QR code to be encoded. An integer, range 1 to 40. If the data specified cannot fit within the required version, a WriterException will be thrown.
public int? QrVersion { get; set; }
Property Value
- int?