EasyBarCodeReadMail¶
Support |
|
|---|---|
Required licenses |
EasyBarCode |
Recommended images |
Any image from the folder |
Location |
|
Purpose¶
This sample program demonstrates how to:
Read a mail bar code in an image.
Code highlights¶
Read the mail bar codes present in the image.
m_Barcodes = m_Reader.Read(m_Source);
Retrieve the text encoded in the i^(th) bar code.
string text = m_Barcodes[i].Text;
Retrieve the j^(th) component (for example the Postal Code or Address in the screenshot) encoded in the i^(th) bar code.
string composed = m_Barcodes[i].ComponentStrings[j].Key + " : " + m_Barcodes[i].ComponentStrings[j].Value;
Draw the position of the i^(th) bar code on the image.
m_Barcodes[i].Draw(e.Graphics);