GdPicture.NET Reference Guide
BarcodeMicroQRReaderClear Method (GdPictureImaging)

GdPicture14 Namespace > GdPictureImaging Class : BarcodeMicroQRReaderClear Method
Releases from memory all information about latest Micro QR barcode detection.
Public Sub BarcodeMicroQRReaderClear() 
public void BarcodeMicroQRReaderClear()
public procedure BarcodeMicroQRReaderClear(); 
public function BarcodeMicroQRReaderClear();
public: void BarcodeMicroQRReaderClear(); 
void BarcodeMicroQRReaderClear(); 

This method is used in the "Barcode Recognition" Demo.

Detecting all Micro QR barcodes in an image and then releasing the Micro QR barcode information.
Dim oGdPictureImaging As New GdPicture.GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("") 'Prompt the user to select an image
If imageId <> 0 Then
   If oGdPictureImaging.BarcodeMicroQRReaderDoScan(ImageID) = GdPictureStatus.OK Then
      'Start Micro QR barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeCount
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
  "Barcode No: " & Str(i))
  "Value: " & oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeValue(i))
         Dim X1, X2, X3, X4, Y1, Y2, Y3, Y4 As Integer
         'LeftArea, TopArea are coordinates used by SetROI()
         For i = 1 To oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeCount
            X1 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeX1(i) + LeftArea
            X2 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeX2(i) + LeftArea
            X3 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeX3(i) + LeftArea
            X4 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeX4(i) + LeftArea
            Y1 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeY1(i) + TopArea
            Y2 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeY2(i) + TopArea
            Y3 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeY3(i) + TopArea
            Y4 = oGdPictureImaging.BarcodeMicroQRReaderGetBarcodeY4(i) + TopArea
            oGdPictureImaging.DrawLine(ImageID, X1, Y1, X2, Y2, 1, Color.Red, True)
            oGdPictureImaging.DrawLine(ImageID, X2, Y2, X3, Y3, 1, Color.Red, True)
            oGdPictureImaging.DrawLine(ImageID, X3, Y3, X4, Y4, 1, Color.Red, True)
            oGdPictureImaging.DrawLine(ImageID, X4, Y4, X1, Y1, 1, Color.Red, True)
      Else"No barcode detected !")
      End If
      oGdPictureImaging.BarcodeMicroQRReaderClear() 'Release detection info from memory
   End If
End If
See Also


GdPictureImaging Class
GdPictureImaging Members