QRCodeAddDecorationImage Method (Image, Int32)
Free Trial Web API version Licensing Request A Quote
HAVE QUESTIONS OR NEED HELP?SUBMIT THE SUPPORT REQUEST FORM or write email toSUPPORT@BYTESCOUT.COM
Adds decorative image to draw in the center of the QR Code.Namespace:Bytescout.BarCode
Assembly: Bytescout.BarCode.QRCode (in Bytescout.BarCode.QRCode.dll) Version: 22.214.171.1241-master
public void AddDecorationImage( Image image, int scale )
Public Sub AddDecorationImage ( image As Image, scale As Integer )
public: void AddDecorationImage( Image^ image, int scale )
member AddDecorationImage : image : Image * scale : int -> unit
- Type: System.DrawingImage
Image to add to barcode.
- Type: SystemInt32
Scale of the image square relatively to the barcode square, in percents. Recommended is 15 percents with the highest error correction level. Set -1 to disable the scaling.
Note, the embedded image damages the barcode, but the QR Code's error correction alorithm makes it possible to decode the damaged barcode if the damage doesn't exceed 7-30% of barcode square (depending on the error correction level). See QROption_ErrorCorrectionLevel. It's recommended to generate the QR Code with highest error correction level and check the barcode is still decodable after image applying. To read the barcode you can use ByteScout Barcode Reader SDK: https://bytescout.com/products/developer/barcodereadersdk/bytescoutbarcodereadersdk.html