Underlay example for C++ Builder
This example loads a bitmap into LEADRasterView2 and uses it as a tiled underlay for LEADRasterView1.
LEADRasterIO* pRasterIO= NULL;
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterIO->Load (LEADRasterView2->Raster, AnsiToOLESTR("v:\\images\\ulay2.bmp"), 0, 0, 1);
pRasterProc->Underlay (LEADRasterView1->Raster, LEADRasterView2->Raster, UNDERLAY_TILE);
LEADRasterView1->ForceRepaint ();
pRasterProc-> Release( );
pRasterIO-> Release( );