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.EncodeTotp
- Method OtpQrPreset.EncodeUri
- Method QR.Encode
- Method QR.EncodeAuto
- Method QrBuilder.Encode
- Method QrCode.Encode
- Method QrCode.EncodeAuto
- Method QrCodeEncoder.EncodeBytes
- Method QrCodeEncoder.EncodeKanji
- Method QrCodeEncoder.EncodeText
- Method QrCodeEncoder.EncodeText
- Method QrEasy.Encode
- Method QrEasy.EncodeAuto
Accepted by parameters
- Method OtpQrSafety.Evaluate
- Method QrArtSafety.Evaluate
Constructors
Methods
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(QrPayloadData 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
Render(CodeGlyphX.Payloads.QrPayloadData payload, CodeGlyphX.Rendering.OutputFormat format, CodeGlyphX.QrEasyOptions options, CodeGlyphX.Rendering.RenderExtras extras) #Renders a payload with embedded defaults to the requested output format.
Parameters
- payload CodeGlyphX.Payloads.QrPayloadData
- format CodeGlyphX.Rendering.OutputFormat
- options CodeGlyphX.QrEasyOptions
- extras CodeGlyphX.Rendering.RenderExtras
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 static String Save(QrPayloadData payload, String path, QrEasyOptions options = null, RenderExtras extras = null) #StringSaves 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
Save(System.String payload, System.String path, CodeGlyphX.QrEasyOptions options, System.String title) #Saves a payload to a file, choosing the output format based on file extension.
Parameters
- payload System.String
- path System.String
- options CodeGlyphX.QrEasyOptions
- title System.String
Save(System.String payload, System.String path, CodeGlyphX.QrEasyOptions options, CodeGlyphX.Rendering.RenderExtras extras) #Saves a payload to a file, choosing the output format based on file extension.
Parameters
- payload System.String
- path System.String
- options CodeGlyphX.QrEasyOptions
- extras CodeGlyphX.Rendering.RenderExtras
Save(CodeGlyphX.Payloads.QrPayloadData payload, System.String path, CodeGlyphX.QrEasyOptions options, System.String title) #Saves 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
- title System.String
Save(CodeGlyphX.Payloads.QrPayloadData payload, System.String path, CodeGlyphX.QrEasyOptions options, CodeGlyphX.Rendering.RenderExtras extras) #Saves 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
- extras CodeGlyphX.Rendering.RenderExtras
Inherited Methods
Properties
public QrErrorCorrectionLevel ErrorCorrectionLevel { get; } #Gets the error correction level used for encoding.
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.