AddBitmaps example for Visual C++
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
ILEADRaster *pRaster2=NULL;
CoCreateInstance(CLSID_LEADRaster, NULL, CLSCTX_ALL, IID_ILEADRaster, (void**)&pRaster2);
pRaster2->Bitmap = 0;
for(int i = 0; i<5; ++i)
{
pRaster2->Bitmap = m_RasterView1.GetRaster().GetBitmap();
pRasterProc->Rotate (pRaster2, 7200 * i, (RotateConstants)0, RGB(255, 0, 0));
m_RasterView2.GetRaster().InsertBitmapListItem (-1, pRaster2->Bitmap);
}
pRasterProc->AddBitmaps (m_RasterView2.GetRaster(), BC_AVG);
pRaster2->Release();
pRasterProc->Release();