SaveResolutionCount example for C++ Builder
unsigned uCount;
/* assume that our bitmap is 800 x 600 */
/* save 3 resolutions*/
Lead1->SaveResolutionCount = 3;
Lead1->SaveResolutionWidth[0] = 800;
Lead1->SaveResolutionHeight[0] = 600;
Lead1->SaveResolutionWidth[1] = 400;
Lead1->SaveResolutionHeight[1] = 300;
Lead1->SaveResolutionWidth[2] = 200;
Lead1->SaveResolutionHeight[2] = 150;
/* get the SaveResolution info*/
ShowMessage("SaveResolutionCount = " + IntToStr( Lead1
>SaveResolutionCount));
for(uCount = 0; uCount < Lead1->SaveResolutionCount; uCount++)
ShowMessage("SaveResolution[" + IntToStr(uCount) + "] = " +
IntToStr(Lead1->SaveResolutionWidth[uCount]) + " x " +
IntToStr(Lead1->SaveResolutionHeight[uCount]));