DisplaceMap example for Visual C++
ILEADRaster* m_pTmpRaster= NULL;
CoCreateInstance(CLSID_LEADRaster, NULL, CLSCTX_ALL, IID_ILEADRaster, (void**)&m_pTmpRaster);
ILEADRasterIO* m_pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&m_pRasterIO);
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterIO->Load(m_pTmpRaster, "c:\Sample1.jpg", 0, 0, 1);
m_pRasterProc->DisplaceMap(m_LeadRasterView.GetRaster(), m_pTmpRaster, 5, 5, RGB(0,0,0), FILL_CLR | DSPL_TILE);
m_pTmpRaster->Release();
m_pRasterIO->Release();
m_pRasterProc->Release();