WriteMetaData example for C++ Builder

void __fastcall TForm1::WriteMetaDataClick(TObject *Sender)
{
   LEADMarker1->LoadMarkers ( "e:\\image1.jpg", 0 );
   LEADImage1->SetMarkers ( LEADMarker1, 0 );
   LEADImage1->WriteMetaData ( "e:\\image2.tif", METADATA_ALL );
}