RadzenQREncoder Class

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

Inheritance

Object

RadzenQREncoder

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public static class RadzenQREncoder

Methods

EncodeByteslink

Encode raw bytes into a QR module matrix.

Declaration
public static Boolean[,] EncodeBytes(Byte[] data, RadzenQREcc ecc, int minVersion, int maxVersion)
Parameters
Type Name Description
Byte[] data
RadzenQREcc ecc
int minVersion
int maxVersion
Returns
Type Description
Boolean[,]

EncodeUtf8link

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

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

ToSvglink

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

Declaration
public static string ToSvg(Boolean[,] 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)
Parameters
Type Name Description
Boolean[,] 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
In This Article
An error has occurred. This app may no longer respond until reloaded. Reload 🗙