Click or drag to resize

BarcodeReaderQuicklyReadOneBarcode Method (String, BarcodeEncoding, Boolean)

Reads a single barcode from an image or PDF with automatic settings designed to be applicable to most use cases.

Overloads of this method accept InputImage as string file paths as well as Image, Bitmap and Stream types.

Namespace:  IronBarCode
Assembly:  IronBarCode (in IronBarCode.dll) Version: 4.0.1.22591 (4.0.1.0)
Syntax
public static BarcodeResult QuicklyReadOneBarcode(
	string InputImage,
	BarcodeEncoding BarcodeFormat = BarcodeEncoding.All,
	bool TryHarder = false
)

Parameters

InputImage
Type: SystemString
The input image as a string file path to an image or PDF. Jpeg, Jpeg2000, Png, Bmp, TiIf & Gif Image formats are supported.
BarcodeFormat (Optional)
Type: IronBarCodeBarcodeEncoding
The barcode encoding types to read from the InputImage. By default all supported barcodes types are scanned for.. Choosing one or more specific Barcode formats will improve performance significantly.
TryHarder (Optional)
Type: SystemBoolean
If set to true the Barcode Reader will expend more CPU cycles looking for barcodes which may be rotated or hidden in background noise in the image.

Return Value

Type: BarcodeResult
A BarcodeResult, or null if no barcode was found.
See Also