Class QrConfiguration
Definition
- Namespace:
- Tizen.Multimedia.Vision
- Assembly:
- Tizen.Multimedia.Vision.dll
Represents a QR configuration of BarcodeGenerator.
C#Copypublic class QrConfiguration
- Inheritance
-
objectQrConfiguration
Constructors
View Source
QrConfiguration(QrMode, ErrorCorrectionLevel, int)
Initializes a new instance of the QrConfiguration class.
Declaration
C#Copypublic QrConfiguration(QrMode qrMode, ErrorCorrectionLevel ecc, int version)
Parameters
| Type | Name | Description |
|---|---|---|
| QrMode | qrMode | Encoding mode for the message. |
| ErrorCorrectionLevel | ecc | Error correction level. |
| int | version | QR code version. From 1 to 40 inclusive. |
Examples
Copyvar qrConfig = new QrConfiguration(QrMode.Numeric, ErrorCorrectionLevel.Medium, 30);
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
| System.ArgumentException |
|
Properties
Declaration
C#Copypublic QrShape DataShape { get; set; }
Property Value
| Type | Description |
|---|---|
| QrShape |
Remarks
The default value is Rectangular.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException |
|
Declaration
C#Copypublic string EmbedImagePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The mediastorage privilege (http://tizen.org/privilege/mediastorage) is needed if the image path is relevant to media storage.
The externalstorage privilege (http://tizen.org/privilege/externalstorage) is needed if the image path is relevant to external storage.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
| System.ArgumentException |
|
Declaration
C#Copypublic ErrorCorrectionLevel ErrorCorrectionLevel { get; }
Property Value
| Type | Description |
|---|---|
| ErrorCorrectionLevel |
Declaration
C#Copypublic QrShape FinderShape { get; set; }
Property Value
| Type | Description |
|---|---|
| QrShape |
Remarks
The default value is Rectangular.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException |
|
Declaration
C#Copypublic QrMode Mode { get; }
Property Value
| Type | Description |
|---|---|
| QrMode |
Declaration
C#Copypublic int Version { get; }
Property Value
| Type | Description |
|---|---|
| int |