VTable example for C++ Builder
//This example remaps the "value" of each color to one half its original
short i;
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
for (i= 0; i <= 255; i ++)
pRasterProc->set_VTable (i, (short)(i / 2));
pRasterProc->RemapHue (LEADRasterView1->Raster, False, False, False, True );
pRasterProc-> Release( );