Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Visual C++ Example for Datamatrix Encoder SDK/DLL

Visual C++ Example for Datamatrix Encoder SDK/DLL 4 years 2 months ago #3881

void CDataMatrixVc6TestDlg::OnEncode()
{
DATAMATRIXCONTEXT tDmCtx;

InitWorkSpace(&tDmCtx);

tDmCtx.encoding = m_EncodeMode.GetCurSel();

tDmCtx.nMargin = m_nMargin;
tDmCtx.sizePattern = m_nColumns;
tDmCtx.dotPixel = m_nModuleSize;
tDmCtx.clBackGround = m_BackColor.GetColor();
tDmCtx.clForeGround = m_ForeColor.GetColor();
if (m_strText != "") memcpy(tDmCtx.code,m_strText.GetBuffer(0),m_strText.GetLength());
tDmCtx.size = m_strText.GetLength();

FreeWorkSpace();
hbmp =DataMatrixEncode2Bitmap(&tDmCtx);

Invalidate();
}
The administrator has disabled public write access.

  • Posts:59
  • developer's Avatar
  • developer
  • Moderator
  • OFFLINE
  • Karma: 1
  • Page:
  • 1
Time to create page: 0.183 seconds
Powered by Kunena Forum :: Wibi