Image Viewer CP ActiveX Control

QRWriterSaveHBITMAP

 

 Save the QR barcode to HBITMAP.

Public Function QRWriterSaveHBITMAP(
 ByVal strValue  As String, _
 ByVal ieccLevel  As long, _
 ByVal iVersion  As long, _
 ByVal iBorderWidth  As long, _
 ByVal clrFg  As Color, _
 ByVal clrBg  As Color, _
 ByVal iScale  As double
)as long

 

Parameter

strValue
   the value of QR Barcode

ieccLevel
   the error level.  From 0-3.

iVersion
   the version no.  From 0-39.

iBorderWidth
   the width of border.

clrFg
   the foreground color of QR Barcode.

clrBg
   the background color of QR Barcode.

iScale
  the scale value. From 0.5 to 5.

Return Value
  Return the HBITMAP handle.

Example

   

Visual Basic Syntax

 bitmaphandle =  ImageViewer1.QRWriterSaveHBITMAP ("http://www.viscomsoft.com", 0, 0, 1, RGB(0,0,0), RGB(255,255,255), 1.0)