EasyMatrixCodeRead
Support |
|
||||||
Required licenses |
EasyMatrixCode |
||||||
Recommended images |
Any image from the folder Sample Images\EasyMatrixCode |
||||||
Location |
Text and Code Reading\EasyMatrixCodeRead \ |
||||||
Direct links
|
Purpose
This sample program demonstrates how to:
□ | Read a data matrix code in an image. |
Code highlights
1. | Locate and read the data matrix codes in the image. |
m_Codes = m_MXC2.Read(m_Src);
2. | Retrieve the text encoded the data matrix code. |
m_DecodedStrings[iCode] = m_Codes[iCode].GetDecodedString();
3. | Draw the grid, the position and the erroneous modules of the data matrix code on the image. |
Codes[iCode].DrawGrid(hDC);
Codes[iCode].DrawPosition(hDC);
Codes[iCode].DrawErrors(hDC);