Class QrEncodeOptions
Settings that control how data is encoded into a QrMatrix.
public sealed record QrEncodeOptions : IEquatable<QrEncodeOptions>
- Inheritance
-
QrEncodeOptions
- Implements
- Inherited Members
Constructors
QrEncodeOptions()
public QrEncodeOptions()
Properties
BoostErrorCorrection
Gets whether to raise the error correction level when that does not make the code any larger. Defaults to true: the extra robustness is free.
public bool BoostErrorCorrection { get; init; }
Property Value
Default
Gets the shared default options: Medium with boosting on.
public static QrEncodeOptions Default { get; }
Property Value
ErrorCorrection
Gets the minimum error correction level. Defaults to Medium.
public QrErrorCorrection ErrorCorrection { get; init; }
Property Value
Mask
Gets the mask pattern to apply, from 0 to 7, or null (the default) to pick the one that is easiest to scan.
public int? Mask { get; init; }
Property Value
- int?
MaxVersion
Gets the largest version to use, from 1 to 40. Defaults to 40.
public int MaxVersion { get; init; }
Property Value
MinVersion
Gets the smallest version to use, from 1 to 40. Defaults to 1. Raise it to keep codes the same size while their content changes.
public int MinVersion { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(QrEncodeOptions?)
public bool Equals(QrEncodeOptions? other)
Parameters
otherQrEncodeOptions
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(QrEncodeOptions?, QrEncodeOptions?)
public static bool operator ==(QrEncodeOptions? left, QrEncodeOptions? right)
Parameters
leftQrEncodeOptionsrightQrEncodeOptions
Returns
operator !=(QrEncodeOptions?, QrEncodeOptions?)
public static bool operator !=(QrEncodeOptions? left, QrEncodeOptions? right)
Parameters
leftQrEncodeOptionsrightQrEncodeOptions