GdPicture.NET Reference Guide
Barcode1DReaderClear Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : Barcode1DReaderClear Method
Releases from memory all information about latest 1D barcode detection.
Syntax
'Declaration
 
Public Sub Barcode1DReaderClear() 
public void Barcode1DReaderClear()
public procedure Barcode1DReaderClear(); 
public function Barcode1DReaderClear();
public: void Barcode1DReaderClear(); 
public:
void Barcode1DReaderClear(); 
Remarks

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

Example
Detecting all barcodes in an image
Dim oGdPictureImaging As New GdPicture.GdPictureImaging
Dim ImageID As Integer
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("") 'Prompt the user to select an image
If imageId <> 0 Then
   If oGdPictureImaging.Barcode1DReaderDoScan(ImageID) = GdPictureStatus.OK Then 'Start barcode scanning process
      Dim BarcodeCount As Integer = oGdPictureImaging.Barcode1DReaderGetBarcodeCount()
      If BarcodeCount > 0 Then
         For i As Integer = 1 To BarcodeCount
            MessageBox.show("Barcode No: " & Str(i))
            MessageBox.show("Type: " & oGdPictureImaging.Barcode1DReaderGetBarcodeType(i).ToString)
            MessageBox.show("Value: " & oGdPictureImaging.Barcode1DReaderGetBarcodeValue(i))
            MessageBox.show("Angle: " & Str(oGdPictureImaging.Barcode1DReaderGetBarcodeSkewAngle(i)))
         Next
      Else
         MessageBox.show("No barcode detected !")
      End If
      oGdPictureImaging.Barcode1DReaderClear() 'Release detection info from memory
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members