Save example for C++ 5.0 and later
This example saves the image as a BMP file, loads the new file, and redisplays the bitmap.
ILEADRasterIO *pRasterIO=NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL,
IID_ILEADRasterIO, (void**)&pRasterIO);
BeginWaitCursor();
pRasterIO->Save(m_LEADRasterView1.GetRaster(),
"d:\\temp\\tmp.bmp", FILE_BMP,
8, (QFactorConstants)1, SAVE_OVERWRITE);
pRasterIO->Load(m_LEADRasterView1.GetRaster(),
"d:\\temp\\tmp.bmp", 0, 0, 1);
m_LEADRasterView1.ForceRepaint();
pRasterIO->Release();
EndWaitCursor();