Class QrWriter
Provides functionality to write QR codes.
Inheritance
Namespace: IronQr
Assembly: IronQr.dll
Syntax
public class QrWriter : Object
Constructors
QrWriter()
Declaration
public QrWriter()
Methods
Write(Byte[])
Renders a QR code from a String of data. UTF-8 fully supported.
Declaration
public static QrCode Write(byte[] binaryData)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | binaryData | The value of the QR code as a byte array. |
Returns
| Type | Description |
|---|---|
| QrCode | A QrCode object for the QR code which can be manipulated, annotated and saved to a IronSoftware.Drawing.AnyBitmap, an object, image file, PDF, MediaURL or data stream. |
Write(Byte[], QrOptions)
Renders a QR code from a String of data. UTF-8 fully supported.
Declaration
public static QrCode Write(byte[] binaryData, QrOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | binaryData | The value of the QR code as a byte array. |
| QrOptions | options | The options for customizing the QR code, including error correction level and version. |
Returns
| Type | Description |
|---|---|
| QrCode | A QrCode object for the QR code which can be manipulated, annotated and saved to a IronSoftware.Drawing.AnyBitmap, an object, image file, PDF, MediaURL or data stream. |
Write(Stream)
Renders a QR code from a String of data. UTF-8 fully supported.
Declaration
public static QrCode Write(Stream binaryDataStream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | binaryDataStream | The value of the QR code as a stream. |
Returns
| Type | Description |
|---|---|
| QrCode | A QrCode object for the QR code which can be manipulated, annotated and saved to a IronSoftware.Drawing.AnyBitmap, an object, image file, PDF, MediaURL or data stream. |
Write(Stream, QrOptions)
Renders a QR code from a String of data. UTF-8 fully supported.
Declaration
public static QrCode Write(Stream binaryDataStream, QrOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.Stream | binaryDataStream | The value of the QR code as a stream. |
| QrOptions | options | The options for customizing the QR code, including error correction level and version. |
Returns
| Type | Description |
|---|---|
| QrCode | A QrCode object for the QR code which can be manipulated, annotated and saved to a IronSoftware.Drawing.AnyBitmap, an object, image file, PDF, MediaURL or data stream. |
Write(String)
Renders a QR code from a String of data. UTF-8 fully supported.
Declaration
public static QrCode Write(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The value of the QR code as a string. Also suitable for URLS. |
Returns
| Type | Description |
|---|---|
| QrCode | A QrCode object for the QR code which can be manipulated, annotated and saved to a IronSoftware.Drawing.AnyBitmap, an object, image file, PDF, MediaURL or data stream. |
Write(String, QrOptions)
Renders a QR code from a String of data. UTF-8 fully supported.
Declaration
public static QrCode Write(string value, QrOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The value of the QR code as a string. Also suitable for URLS. |
| QrOptions | options | The options for customizing the QR code, including error correction level and version. |
Returns
| Type | Description |
|---|---|
| QrCode | A QrCode object for the QR code which can be manipulated, annotated and saved to a IronSoftware.Drawing.AnyBitmap, an object, image file, PDF, MediaURL or data stream. |