InsertBitmapList Example for Visual C++ 5.0

void BitmapListExample(CLEADRasterContainerViewer * pLEADContainerViewer)
{
short nCount, i;
ILEADRaster* pRaster = NULL;
pRaster = (ILEADRaster *)pLEADContainerViewer->Cell(0).GetBitmapList();
ILEADRasterProcess* m_pRasterProcess= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProcess);
pRaster->get_BitmapListCount(&nCount);

for (i = 0; i < nCount; i++)
{
pRaster->BitmapListIndex = i ;
m_pRasterProcess->Average (pRaster, 10);
}
pLEADContainerViewer->Cell(0).InsertBitmapList(pRaster, FALSE, 0);
pRaster->BitmapList = 0;
pRaster->Release();
m_pRasterProcess->Release();
}