ClearImage SDK
Programming

C#

Install Inlite.BarcodeReader.IP NuGet packages

This package installs ClearImageNet.70.dll assembly, which contains two namespaces.

  • Inlite.ClearImageNet namespace implements high-level functions recommended to use in new applications. Code examples use only this namespace.
  • Inlite.ClearImage namespace is substantially compatible with the COM API and is specifically designed to ease the migration from ClearImage COM API applications to .NET. It also supports a few low-level functions.

ClearImage Project Development

Use Visual Studio C# ClearImage example project or follow the code examples below.

Extend functionality

Combine code examples on this page with methods described in ClearImage API documentation in developing your project. Contact [email protected] if you have questions.

Exception handling

ClearImage .NET API reports errors as an Exception object.

C#


Barcode Reading

Read 1D barcodes from a page

This example reads code 39 and code 128 barcodes. Set barcode types used in your application. Setting reader.Auto1D=true; automatically finds barcode type, but it is slower and is not recommended for production.

C#


Read 2D Barcode from a page

This example reads PDF417, DataMatrix, and QR code. 2D barcodes might contain binary data available in Barcode.Data property.

C#


Read Postal Barcodes from a page

This example reads Postal Barcodes from an image file page.

C#


Read Driver's License barcode

This example reads the Driver's License barcode from an image file page.

C#


Read from a multi-page image file

This example reads barcodes from a single-page file or all pages of a multi-page image file.

C#


Read from a stream

This example reads barcodes from a stream. The stream contains the content of a single image file. For example, if a file is stored in a database.

C#



Image Processing

Repair image page

This example uses some of the most popular image-processing functions. In a production application, the specific sequence of functions should be selected based on specific application needs. 

C#


Repair all images in a multi-page file

This example repairs all images in a multi-page file and saves the result in the fileOut file.

C#


Repair all images in a stream

This example repairs all images in an input stream and saves the output stream using a specified file format. Streams contain the content of a single image file. For example, if a file is stored in a database.

C#