VIDEOS

How to Read Barcodes From System Drawing Objects

Jordi Bardia
Jordi Bardia
October 27, 2024
Share:


In this video tutorial, we delve into the process of reading barcodes using the Iron Barcode Library in conjunction with System.Drawing objects. The session begins by ensuring the Iron Barcode Library is installed via the NuGet package manager. Moving on to the program.cs file, we import essential namespaces: Iron Barcode for barcode functionality and Iron Software.Drawing for image handling. We then initialize a list of AnyBitmap to hold the barcodes, loading a barcode image as a System.Drawing.Bitmap and casting it into an AnyBitmap object. This is followed by adding the image to the barcode list. Similarly, a QR code image is loaded and added to the list. Iterating through the list, each barcode is read using the ReadBarcode method, which returns detected barcodes that are printed on the console. The tutorial showcases the ease of using Iron Barcode, highlighting its seamless integration with System.Drawing objects and its support for implicit casting. By the end of the tutorial, the program successfully detects and prints the values of the barcodes and QR codes, with each value corresponding to the data encoded within. The tutorial concludes with an invitation to the audience to try out the software by downloading it from the website.

Get stated with IronBarcode now.
green arrow pointer

Jordi Bardia
Software Engineer
Jordi is most proficient in Python, C# and C++, when he isn’t leveraging his skills at Iron Software; he’s game programming. Sharing responsibilities for product testing, product development and research, Jordi adds immense value to continual product improvement. The varied experience keeps him challenged and engaged, and he says it’s one of his favorite aspects of working with Iron Software. Jordi grew up in Miami, Florida and studied Computer Science and Statistics at University of Florida.
< PREVIOUS
How to Read Multiple Barcodes at Once in C#
NEXT >
How to Read Barcodes From Streams in C#