Page 1 of 1

Location of Barcode on TIFF

Posted: Tue Oct 13, 2009 3:23 am
by trousseau
I have a tiff image with a single barcode on it. This image is sent to us through a fax service, and sometimes the image comes in upside down. This doesn't effect the reading of the barcode, but it does effect a process further down the line. Is there a way to determine if the barcode is on the top/bottom/left/right of the image, so I can rotate and save the correctly oriented image?

Thanks.

Re: Location of Barcode on TIFF

Posted: Tue Oct 13, 2009 8:25 am
by Alex
Hello,

You can get the direction of the barcode with the Direction property:

Code: Select all

...
IBarcodeInfo[] infos = barcodeReader.ReadBarcodes(image);
// infos[0].Direction - direction of the first barcode
...
Best regards, Alexander