Skip to content

M_QRCoder_Core_QRCodeGenerator_CreateQrCode_2

Afonso Dutra Nogueira Filho edited this page Mar 28, 2024 · 2 revisions

CreateQrCode(Byte[], QRCodeGenerator.ECCLevel) Method

Calculates the QR code data which than can be used in one of the rendering classes to generate a graphical representation.

Definition

Namespace: QRCoder.Core
Assembly: QRCoder.Core (in QRCoder.Core.dll) Version: 1.0.2+100b048b01076590efe500a3be242a5faeb43294
XMLNS for XAML: Not mapped to an xmlns.

C#

public QRCodeData CreateQrCode(
	byte[] binaryData,
	QRCodeGenerator.ECCLevel eccLevel
)

C++

public:
QRCodeData^ CreateQrCode(
	array<unsigned char>^ binaryData, 
	QRCodeGenerator.ECCLevel eccLevel
)

Parameters

  Byte[]
A byte array which shall be encoded/stored in the QR code
  QRCodeGenerator.ECCLevel
The level of error correction data

Return Value

QRCodeData
Returns the raw QR code data which can be used for rendering.

Exceptions

DataTooLongException Thrown when the payload is too big to be encoded in a QR code.

See Also

Reference

QRCodeGenerator Class
CreateQrCode Overload
QRCoder.Core Namespace

Clone this wiki locally