Load (ILEADMarkers) example for C++ 5.0 and later
ILEADRasterIO *pRasterIO;
ILEADMarkers *pMarker1;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
CoCreateInstance(CLSID_LEADMarkers, NULL, CLSCTX_ALL, IID_ILEADMarkers, (void**)&pMarker1);
pRasterIO->Load(m_LeadView.GetRaster(), "c:\\image1.jpg", 0, 0, 1 );
pMarker1->Load("c:\\ image1.jpg",0);
pRasterIO->SetMarkers (pMarker1,0);
pRasterIO->Save (m_LeadView.GetRaster(), "c:\\image2.jpg",FILE_EXIF_JPEG, 24, 2, 0);