SaveTileWidth example for C++ 5.0 and later

   ILEADRasterIO *pRasterIO=NULL; 
   CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO); 

// save TIF files with a tile size of 512x512
   m_RasterView1.GetRaster ().SetScaleMode(SCALEMODE_PIXEL); // use pixels for the tile size
   pRasterIO->SaveTileWidth= 512; 
   pRasterIO->SaveTileHeight= 512; 
   pRasterIO->Save(m_RasterView1.GetRaster(), "c:\\temp\\tiled.tif", FILE_CCITT_GROUP4, 0, QFACTOR_LEAD_0, SAVE_OVERWRITE); 

   pRasterIO->Release();