# RadzenQREncoder Class

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

Namespace: [Radzen.Blazor](https://blazor.radzen.com/docs/api/Radzen.Blazor.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- RadzenQREncoder

## Syntax

```csharp
public static class RadzenQREncoder
```

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `EncodeBytes(Byte[] data, RadzenQREcc ecc, int minVersion, int maxVersion)` | `Boolean[,]` | Encode raw bytes into a QR module matrix. |
| `EncodeUtf8(string value, RadzenQREcc ecc, int minVersion, int maxVersion)` | `Boolean[,]` | Encode a UTF-8 string into a QR module matrix. |
| `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)` | `string` | Render a module matrix into an SVG string with a 4-module quiet zone. |

