GdPicture.NET Reference Guide
PatchCodeReaderGetCodeX2 Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : PatchCodeReaderGetCodeX2 Method
Patch Code index. Must be between 1 and PatchCodeReaderGetCodeCount returned value.
Returns the X position (in pixels) of the top-right corner of a Patch Code detected by the PatchCodeReaderDoScan method.
Syntax
'Declaration
 
Public Function PatchCodeReaderGetCodeX2( _
   ByVal PatchCodeNo As Integer _
) As Integer
public int PatchCodeReaderGetCodeX2( 
   int PatchCodeNo
)
public function PatchCodeReaderGetCodeX2( 
    PatchCodeNo: Integer
): Integer; 
public function PatchCodeReaderGetCodeX2( 
   PatchCodeNo : int
) : int;
public: int PatchCodeReaderGetCodeX2( 
   int PatchCodeNo
) 
public:
int PatchCodeReaderGetCodeX2( 
   int PatchCodeNo
) 

Parameters

PatchCodeNo
Patch Code index. Must be between 1 and PatchCodeReaderGetCodeCount returned value.

Return Value

The Patch Code X position of the top-right corner.
Remarks

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

Example
Detecting Patch Code elements in an image
Dim gdpictureImaging As New GdPictureImaging
Dim ImageID As Integer = gdpictureImaging.CreateGdPictureImageFromFile("separator.tif")
gdpictureImaging.PatchCodeReaderDoScan(ImageID)
For i As Integer = 1 To gdpictureImaging.PatchCodeReaderGetCodeCount()
   MessageBox.Show("Patch Code no " + (i).ToString() + ": " + gdpictureImaging.PatchCodeReaderGetCodeType(i).ToString())
Next i
gdpictureImaging.ReleaseGdPictureImage(ImageID)
gdpictureImaging.Dispose()
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members