VTable example for C++ 5.0 and later
//This example remaps the "value" of each color to one half its original
void CRemapHueDlg::OnVTable()
{
int i;
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
if (pRasterProc != NULL)
{
for (i=0; i<256; i++)
{
pRasterProc->PutVTable (i, i/2);
}
pRasterProc->RemapHue (m_RasterView.GetRaster(), FALSE, FALSE, FALSE, TRUE);
}
pRasterProc->Release();
}