SavePage example for C++ 5.0 and later

ILEADRasterIO *pRasterIO=NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
                 IID_ILEADRasterIO, (void**)&pRasterIO);
// replace page 1 from TEST.TIF
pRasterIO->PutSavePage(1);
pRasterIO->Save(m_LEADRasterView1.GetRaster(),
                "d:\\temp\\TEST.TIF", FILE_TIF,
                8, (QFactorConstants)0, SAVE_REPLACE); 
pRasterIO->Release();