Provides QR encoding utilities for UTF-8 strings and raw bytes.
Object
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public static class RadzenQREncoderEncode raw bytes into a QR module matrix.
public static Boolean[,] EncodeBytes(Byte[] data, RadzenQREcc ecc, int minVersion, int maxVersion)
| Type | Name | Description |
|---|---|---|
| Byte[] | data | |
| RadzenQREcc | ecc | |
| int | minVersion | |
| int | maxVersion |
| Type | Description |
|---|---|
| Boolean[,] |
Encode a UTF-8 string into a QR module matrix.
public static Boolean[,] EncodeUtf8(string value, RadzenQREcc ecc, int minVersion, int maxVersion)
| Type | Name | Description |
|---|---|---|
| string | value | |
| RadzenQREcc | ecc | |
| int | minVersion | |
| int | maxVersion |
| Type | Description |
|---|---|
| Boolean[,] |
Render a module matrix into an SVG string with a 4-module quiet zone.
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)
| 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 |
| Type | Description |
|---|---|
| string |