LoadIFD example for C++ Builder
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
//All examples will assume that "test.tif" has over 1002 images
// This example will load pages 1000 and 1001 after getting the information for page 1000:
pRasterIO->GetFileInfo (LEADRasterView1->Raster, AnsiToOLESTR("v:\\images\\Test.tif"), 1000, 0);
// Setting LoadIFD to InfoIFD indicates that 1000 is treated as page 1
pRasterIO->LoadIFD = pRasterIO->InfoIFD;
pRasterIO->Load (LEADRasterView1->Raster, AnsiToOLESTR("v:\\images\\Test.tif"), 0, 0, 2);
// Reset LoadIFD to 0 so other TIF files will be handled properly
pRasterIO->LoadIFD = 0;
pRasterIO-> Release( );