SaveResolutionCount example for C++ Builder
short i;
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
//assume that our bitmap is 800 x 600
//save 3 resolutions
pRasterIO->SaveResolutionCount = 3;
pRasterIO->set_SaveResolutionWidth (0, 800);
pRasterIO->set_SaveResolutionHeight (0, 600);
pRasterIO->set_SaveResolutionWidth(1, 400);
pRasterIO->set_SaveResolutionHeight(1, 300);
pRasterIO->set_SaveResolutionWidth(2, 200);
pRasterIO->set_SaveResolutionHeight(2, 150);
//get the SaveResolution info
ShowMessage ("SaveResolutionCount = " + IntToStr(pRasterIO->SaveResolutionCount));
for (i= 0; i < pRasterIO->SaveResolutionCount; i ++)
{
ShowMessage( "SaveResolution(" + IntToStr(i) + ") = " +
IntToStr((int)pRasterIO->get_SaveResolutionWidth(i)) + " x " +
IntToStr((int)pRasterIO->get_SaveResolutionHeight(i)));
}
pRasterIO-> Release( );