STable example for C++ 5.0 and later
//This example remaps the saturation of each color to one half its original
void CRemapHueDlg::OnSTable()
{
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->PutSTable (i, i/2);
}
pRasterProc->RemapHue (m_RasterView.GetRaster(), FALSE, FALSE, TRUE, FALSE);
}
pRasterProc->Release();
}