Dear All,
I have the following code to generate QR Code dynamically:
Can any one tell me how to purge padding space between the image border and QRCode symbol?
According to the documentation changing DotSize to zero should resize the QR symbol to fill up the Width and Height.
It doesn't work, the white space is always there. I tried also several other setting without success.
Greatly appreciate for any helps.
Regards,
Christopher
I have the following code to generate QR Code dynamically:
public
Image GetQRCode(
string
sUrl,
int
iDotSize)
{
var code =
new
RadBarcode();
code.Text = sUrl;
code.Type = BarcodeType.QRCode;
code.OutputType = BarcodeOutputType.EmbeddedPNG;
code.QRCodeSettings.Mode = Telerik.Web.UI.Barcode.Modes.CodeMode.Byte;
code.QRCodeSettings.ErrorCorrectionLevel = Telerik.Web.UI.Barcode.Modes.ErrorCorrectionLevel.L;
code.QRCodeSettings.DotSize = iDotSize;
code.QRCodeSettings.Version = 2;
code.QRCodeSettings.ECI = Telerik.Web.UI.Barcode.Modes.ECIMode.None;
//code.QRCodeSettings.DotSize = 0; // no changes, space is always there
//code.Attributes.Add("Width", "310px"); // no changes, space is always there
//code.Attributes.Add("Height", "310px"); // no changes, space is always there
return
code.GetImage();
}
Can any one tell me how to purge padding space between the image border and QRCode symbol?
According to the documentation changing DotSize to zero should resize the QR symbol to fill up the Width and Height.
It doesn't work, the white space is always there. I tried also several other setting without success.
Greatly appreciate for any helps.
Regards,
Christopher