RemapTableSize example for C++ Builder
if (((LEADImage1->BitmapBits == 16) &&
(LEADImage1->IsGrayScale)) ||
(LEADImage1->BitmapBits == 64) ||
(LEADImage1->BitmapBits == 48))
LEADImage1->RemapTableSize = 65536;
else
{
if (LEADImage1->BitmapBits == 12)
LEADImage1->RemapTableSize= 4096;
else
LEADImage1->RemapTableSize= 256;
}