HistogramTableSize 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 () == 64 || m_RasterView1.GetRaster().GetBitmapBits () == 48)
pRasterProc->HistogramTableSize= 65536;
else
pRasterProc->HistogramTableSize = 256;
pRasterProc->Release();