Class QrConfiguration

    Definition

    Namespace:
    Tizen.Multimedia.Vision
    Assembly:
    Tizen.Multimedia.Vision.dll

    Represents a QR configuration of BarcodeGenerator.

    public class QrConfiguration
    Inheritance
    object
    QrConfiguration

    Constructors

    View Source

    QrConfiguration(QrMode, ErrorCorrectionLevel, int)

    Initializes a new instance of the QrConfiguration class.

    Declaration
    public 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
    var qrConfig = new QrConfiguration(QrMode.Numeric, ErrorCorrectionLevel.Medium, 30);
    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    version is less than 1.
    -or-
    version is greater than 40.

    System.ArgumentException

    qrMode is invalid.
    -or-
    ecc is invalid.

    Properties

    View Source

    DataShape

    Gets or sets the data shape of the Design QR code.

    Declaration
    public QrShape DataShape { get; set; }
    Property Value
    Type Description
    QrShape
    Remarks

    The default value is Rectangular.

    Exceptions
    Type Condition
    System.ArgumentException

    value is not valid.

    View Source

    EmbedImagePath

    Gets or sets the embed image absolute path of the Design QR code.

    Declaration
    public 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

    value is null.

    System.ArgumentException

    value is zero-length string.

    View Source

    ErrorCorrectionLevel

    Gets the error correction level.

    Declaration
    public ErrorCorrectionLevel ErrorCorrectionLevel { get; }
    Property Value
    Type Description
    ErrorCorrectionLevel
    View Source

    FinderShape

    Gets or sets the finder shape of the Design QR code.

    Declaration
    public QrShape FinderShape { get; set; }
    Property Value
    Type Description
    QrShape
    Remarks

    The default value is Rectangular.

    Exceptions
    Type Condition
    System.ArgumentException

    value is not valid.

    View Source

    Mode

    Gets the encoding mode for the message.

    Declaration
    public QrMode Mode { get; }
    Property Value
    Type Description
    QrMode
    View Source

    Version

    Gets the QR code version.

    Declaration
    public int Version { get; }
    Property Value
    Type Description
    int
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX