ImageGear .NET - Updated
Acquire an Image for Barcode Recognition
User Guide > How to Work with... > Barcodes > Acquire an Image for Barcode Recognition

Image Options

The barcode engine works with 1-bit black and white images, 8-bit grayscale images, and 24-bit color images. To convert other image formats use the ImageGear Reduce method or other methods with the included ImageGear system.

The barcode engine accepts ImGearPages, .NET Bitmaps or an hDIB as an input image. Use ImageGear to load images from numerous file formats and convert into the appropriate format for the barcode engine.

C# Example - Minimum C# code to load an image and recognize for barcodes.
Copy Code
// Load the file into an image page
    ImageGear.Core.ImGearPage page = ImageGear.Formats.ImGearFileFormats.LoadPage(fileContent, 0);
      List<ImGearResult> results = new List<ImGearResult>();
      // Analyze the barcode
      results.AddRange(IGBarcode.Reader.Analyze(page);