QRCodeSvgOptions Class
Options for rendering a QR code as SVG.
public sealed class QRCodeSvgOptionsConstructors
| Name | Description |
|---|---|
| QRCodeSvgOptions() |
QRCodeSvgOptions()
QRCodeSvgOptions.cspublic QRCodeSvgOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| DarkColor | Gets or sets the color for dark modules. Default is Color.Black. |
| LightColor | Gets or sets the color for light modules. Default is Color.White. |
| LogoImageHref | Gets or sets the image source for a centered logo in the SVG output (for example, a URL or a data URI). |
| LogoSizePercent | Gets or sets the logo size as a percentage of the smallest SVG side. Default is 20. |
| ModuleSize | Gets or sets the size of each module in SVG units. Default is 10. |
| QuietZoneModules | Gets or sets the number of quiet zone modules around the QR code. Default is 4. |
DarkColor
QRCodeSvgOptions.csGets or sets the color for dark modules. Default is Color.Black.
public Color DarkColor { get; set; }Property value
LightColor
QRCodeSvgOptions.csGets or sets the color for light modules. Default is Color.White.
public Color LightColor { get; set; }Property value
LogoImageHref
QRCodeSvgOptions.csLogoSizePercent
QRCodeSvgOptions.csGets or sets the logo size as a percentage of the smallest SVG side. Default is 20.
public int LogoSizePercent { get; set; }Property value
Remarks
Used only when QRCodeSvgOptions.LogoImageHref is set. Valid values are between 1 and 100.