Barcode Xpress for .NET Core v14.0 - Updated January 7, 2025
Developer Guide / How To / Acquire an Image for Barcode Recognition
Acquire an Image for Barcode Recognition

Image Options

Barcode Xpress works with 1-bit black and white images, 8-bit grayscale images, and 24-bit color images.

Barcode Xpress for .NET Core should process images in any format that can be loaded by ImageGear, such as GIF, JPEG, EXIF, TIF, PNG, and BMP.

C#

using (Stream stream = File.OpenRead(imagePath))
{
    Result[] results = barcodeXpress.reader.Analyze(stream);
}

Setting Barcode Type

Set the barcode type by using the BarcodeTypes property.

C#

using (Stream stream = File.OpenRead(imagePath))
{
    barcodeXpress.reader.BarcodeTypes = new BarcodeType[] { 
    BarcodeType.QRCodeBarcode, BarcodeType.PDF417Barcode };
    Result[] results = barcodeXpress.reader.Analyze(stream);
}

Use the BarcodeType enum to set the BarcodeType array. See the Barcode Types page for more information and examples of each supported barcode type.

See Also

Recognize a Barcode

System Requirements

Access Results

Create a Barcode

Overview