ConvertUnsignedToSigned Example for C++ 5.0 and later

ILEADRasterProcess *pRasterProc=NULL;
   CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
   ILEADRasterIO *pRasterIO=NULL;
   CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);

   // Load the bitmap data as signed so we can use a different conversion
   pRasterIO->LoadSigned= TRUE;
   pRasterIO->Load (m_RasterView1.GetRasterRasterproperty(), "c:\\temp\\signed.tif", 0, 0, 1);
   // use the non-default conversion "zero to center"
   pRasterProc->ConvertSignedToUnsigned(m_RasterView1.GetRaster(), SHIFT_ZERO_TO_CENTER);

   pRasterProc->Release();
   pRasterIO->Release();