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.