API Reference
QrCode
A generated QR code (modules + metadata).
Inheritance
- Object
- QrCode
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method HotpBuilder.Encode
- Method TotpBuilder.Encode
- Method OtpQrPreset.EncodeHotp
- Method OtpQrPreset.EncodeHotp
- Method OtpQrPreset.EncodeTotp
- Method OtpQrPreset.EncodeTotp
- Method OtpQrPreset.EncodeUri
- Method QR.Encode
- Method QR.Encode
- Method QR.EncodeAuto
- Method QrBuilder.Encode
- Method QrCode.Encode
- Method QrCode.Encode
- Method QrCode.EncodeAuto
- Method QrCodeEncoder.EncodeBytes
- Method QrCodeEncoder.EncodeBytes
- Method QrCodeEncoder.EncodeGs1
- Method QrCodeEncoder.EncodeKanji
- Method QrCodeEncoder.EncodeStructuredAppend
- Method QrCodeEncoder.EncodeStructuredAppend
- Method QrCodeEncoder.EncodeText
- Method QrCodeEncoder.EncodeText
- Method QrCodeEncoder.EncodeText
- Method QrEasy.Encode
- Method QrEasy.Encode
- Method QrEasy.EncodeAuto
Accepted by parameters
- Method OtpQrHeuristics.Evaluate
- Method QrArtHeuristics.Evaluate
Constructors
Methods
public static QrCode Encode(String payload, QrEasyOptions options = null) #QrCodeEncodes a payload into a QrCode.
Parameters
- payload System.String
- options CodeGlyphX.QrEasyOptions = null
public static QrCode EncodeAuto(String payload, QrPayloadDetectOptions detectOptions = null, QrEasyOptions options = null) #QrCodeDetects a payload type and encodes it into a QrCode.
Parameters
- payload System.String
- detectOptions CodeGlyphX.Payloads.QrPayloadDetectOptions = null
- options CodeGlyphX.QrEasyOptions = null
public RenderedOutput Render(OutputFormat format, QrEasyOptions options = null, RenderExtras extras = null) #RenderedOutputRenders this QR code to the requested output format.
Parameters
- format CodeGlyphX.Rendering.OutputFormat
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public static RenderedOutput Render(String payload, OutputFormat format, QrEasyOptions options = null, RenderExtras extras = null) #RenderedOutputRenders a payload to the requested output format.
Parameters
- payload System.String
- format CodeGlyphX.Rendering.OutputFormat
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public static RenderedOutput Render(QrPayloadData payload, OutputFormat format, QrEasyOptions options = null, RenderExtras extras = null) #RenderedOutputRenders a payload with embedded defaults to the requested output format.
Parameters
- payload CodeGlyphX.Payloads.QrPayloadData
- format CodeGlyphX.Rendering.OutputFormat
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public static RenderedOutput RenderAuto(String payload, OutputFormat format, QrPayloadDetectOptions detectOptions = null, QrEasyOptions options = null, RenderExtras extras = null) #RenderedOutputDetects a payload type and renders a QR code.
Parameters
- payload System.String
- format CodeGlyphX.Rendering.OutputFormat
- detectOptions CodeGlyphX.Payloads.QrPayloadDetectOptions = null
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public String Save(String path, QrEasyOptions options = null, RenderExtras extras = null) #StringSaves this QR code to a file, choosing the output format based on file extension.
Parameters
- path System.String
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public Void Save(OutputFormat format, Stream stream, QrEasyOptions options = null, RenderExtras extras = null) #VoidSaves this QR code to a stream in the specified format.
Parameters
- format CodeGlyphX.Rendering.OutputFormat
- stream System.IO.Stream
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public static String Save(String payload, String path, QrEasyOptions options = null, RenderExtras extras = null) #StringSaves a payload to a file, choosing the output format based on file extension.
Parameters
- payload System.String
- path System.String
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
public static String Save(QrPayloadData payload, String path, QrEasyOptions options = null, RenderExtras extras = null) #StringSaves a payload with embedded defaults to a file, choosing the output format based on file extension.
Parameters
- payload CodeGlyphX.Payloads.QrPayloadData
- path System.String
- options CodeGlyphX.QrEasyOptions = null
- extras CodeGlyphX.Rendering.RenderExtras = null
Inherited Methods
Properties
public QrErrorCorrectionLevel ErrorCorrectionLevel { get; } #Gets the error correction level used for encoding.
public Int32 Mask { get; } #Gets the selected mask pattern (0..7).
public BitMatrix Modules { get; } #Gets the QR modules (dark = true, light = false), without quiet zone.
public Int32 Size { get; } #Gets the module matrix size (width/height), i.e. Version * 4 + 17.