Class RadzenQREncoder
Provides QR encoding utilities for UTF-8 strings and raw bytes.
Inheritance
RadzenQREncoder
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
Returns
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
Returns
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
Returns