Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenQREncoder

    Provides QR encoding utilities for UTF-8 strings and raw bytes.

    Inheritance
    object
    RadzenQREncoder
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public static class RadzenQREncoder

    Methods

    EncodeBytes(byte[], RadzenQREcc, int, int)

    Encode raw bytes into a QR module matrix.

    Declaration
    public static bool[,] EncodeBytes(byte[] data, RadzenQREcc ecc = RadzenQREcc.Medium, int minVersion = 1, int maxVersion = 40)
    Parameters
    Type Name Description
    byte[] data
    RadzenQREcc ecc
    int minVersion
    int maxVersion
    Returns
    Type Description
    bool[,]

    EncodeUtf8(string, RadzenQREcc, int, int)

    Encode a UTF-8 string into a QR module matrix.

    Declaration
    public static bool[,] EncodeUtf8(string value, RadzenQREcc ecc, int minVersion = 1, int maxVersion = 40)
    Parameters
    Type Name Description
    string value
    RadzenQREcc ecc
    int minVersion
    int maxVersion
    Returns
    Type Description
    bool[,]

    ToSvg(bool[,], int, string, string, QRCodeModuleShape, QRCodeEyeShape, QRCodeEyeShape?, QRCodeEyeShape?, QRCodeEyeShape?, string?, string?, string?, string?, string?, string)

    Render a module matrix into an SVG string with a 4-module quiet zone.

    Declaration
    public static string ToSvg(bool[,] modules, int moduleSize = 8, string foreground = "#000000", string background = "#FFFFFF", QRCodeModuleShape moduleShape = QRCodeModuleShape.Square, QRCodeEyeShape eyeShape = QRCodeEyeShape.Square, QRCodeEyeShape? eyeShapeTopLeft = null, QRCodeEyeShape? eyeShapeTopRight = null, QRCodeEyeShape? eyeShapeBottomLeft = null, string? eyeColor = null, string? eyeColorTopLeft = null, string? eyeColorTopRight = null, string? eyeColorBottomLeft = null, string? image = null, string imageBackground = "#FFF")
    Parameters
    Type Name Description
    bool[,] modules
    int moduleSize
    string foreground
    string background
    QRCodeModuleShape moduleShape
    QRCodeEyeShape eyeShape
    QRCodeEyeShape? eyeShapeTopLeft
    QRCodeEyeShape? eyeShapeTopRight
    QRCodeEyeShape? eyeShapeBottomLeft
    string eyeColor
    string eyeColorTopLeft
    string eyeColorTopRight
    string eyeColorBottomLeft
    string image
    string imageBackground
    Returns
    Type Description
    string

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2026 Radzen. Source Code licensed under MIT