Save example for C++ Builder
This example saves the image as a BMP file, loads the new file, and redisplays the bitmap.
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
Screen->Cursor= crHourGlass;
pRasterIO->Save (LEADRasterView1->Raster, AnsiToOLESTR("c:\\temp\\tmp.bmp"),
FILE_BMP, 8, (QFactorConstants)1, SAVE_OVERWRITE);
pRasterIO->Load (LEADRasterView1->Raster, AnsiToOLESTR("c:\\temp\\tmp.bmp"), 0, 0, 1);
LEADRasterView1->ForceRepaint ();
Screen->Cursor= crDefault;
pRasterIO-> Release( );