Available in the LEADTOOLS Imaging toolkit. |
CreateMarkers example for C++ 4.0 and later
// Add LEAD Main ActiveX Control into your form then assign
a variable to it called "m_Lead".
CLEADMarkers* pMarkers1 = (CLEADMarkers*)m_Lead.LoadMarkers(TEXT("c:\\image1.jpg"),
0);
CLEADMarkers* pMarkers2 = (CLEADMarkers*)m_Lead.CreateMarkers();
pMarkers2 = (CLEADMarkers*)pMarkers1->Clone();
for(int i = 0; i < pMarkers2->GetCount(); i++)
{
CString strMsg;
CLEADMarker * pMarker = (CLEADMarker*)pMarkers2->GetMarker(i);
strMsg.Format(TEXT("Marker Type: %l\nMarker Size:
%l"), pMarker->GetType(), pMarker->GetSize());
MessageBox(strMsg);
}