RemapTableSize example for C++ 5.0 and later
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
if((m_RasterView1.GetRaster ().GetBitmapBits () == 16 && m_RasterView1.GetRaster().GetIsGrayscale())
|| m_RasterView1.GetRaster().GetBitmapBits () == 64 || m_RasterView1.GetRaster().GetBitmapBits () == 48)
pRasterProc->RemapTableSize = 65536;
else if(m_RasterView1.GetRaster().GetBitmapBits() == 12)
pRasterProc->RemapTableSize= 4096;
else
pRasterProc->RemapTableSize = 256;
pRasterProc->Release();
pRasterProc->Release();