Available in the LEADTOOLS Imaging toolkit. |
GetMarkers example for C++ 4.0 and later
// Add LEAD Main ActiveX Control into your form then assign
a variable to it called "m_Lead".
m_Lead.Load(TEXT("c:\\image1.jpg"), 0, 0, 1);
CLEADMarkers* pMarkers1 = (CLEADMarkers*)m_Lead.LoadMarkers(TEXT("c:\\image1.jpg"),
0);
m_Lead.SetMarkers(m_Lead.LoadMarkers(TEXT("c:\\image1.jpg"),
0), 0);
m_Lead.Save(TEXT("c:\\image2.jpg"), FILE_EXIF_JPEG, 24, 2, 0);
CLEADMarkers* pMarkers2 = (CLEADMarkers*)m_Lead.GetMarkers(0);
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);
}