GetMarkers example for C++ Builder
void __fastcall TForm1::GetMarkersClick(TObject *Sender)
{
int i;
LEADImage1->Load ( "e:\\image1.jpg", 0, 0, 1 );
LEADMarker1->LoadMarkers ( "e:\\image1.jpg", 0 );
LEADImage1->SetMarkers ( LEADMarker1, 0 );
LEADImage1->Save ( "c:\\image2.jpg", FILE_EXIF_JPEG, 24, 2, 0 );
LEADMarker2->GetMarkers ( 0 );
for (i= 0; i < LEADMarker2->Count; i ++)
{
LEADMarker2->GetMarker ( i );
ShowMessage ( "Marker Type= " + IntToStr(LEADMarker2->MarkerType) + "\n" +
"Marker Element Count= " + IntToStr(LEADMarker2->ElementCount) );
}
}