BarCodeFormat.All_1D ?

Oct 19, 2012 at 11:45 AM

I've noticed that this particular enum value is missing. Why? May I request that it's added back to the library with along with the supporting functionality?

Or - if not possible - I'd request guidance in case where I don't know the format of the barcode in advance, which BarCodeFormat value should I use?

Best Regards.

Coordinator
Oct 20, 2012 at 8:13 AM

The enum value BarcodeFormat.All_1D was never there. I think you talk about a different port of zxing. I can remember that I found a different port at a blog post where someone added such an enum value.

I will think about it if it makes sense to add it.

Meanwhile you can use the following code snippet to scan for all supported 1D barcodes:

 

var barcodeReader = new BarcodeReader
{
   PossibleFormats = new List<BarcodeFormat>
   {
      BarcodeFormat.UPC_A,
      BarcodeFormat.UPC_E,
      BarcodeFormat.RSS_14,
      BarcodeFormat.ITF,
      BarcodeFormat.EAN_8,
      BarcodeFormat.EAN_13,
      BarcodeFormat.CODE_93,
      BarcodeFormat.CODE_39,
      BarcodeFormat.CODE_128,
BarcodeFormat.CODABAR, BarcodeFormat.RSS_EXPANDED, BarcodeFormat.UPC_EAN_EXTENSION, } };