AddWeightedBitmaps example for C++ Builder
void __fastcall TForm1::AddWeightedBitmapsClick(TObject *Sender)
{
L_INT i;
/* Load the bitmap, keeping the bits per pixel of the file */
LEADImage1->Load( "e:\\image1.cmp", 0, 1, 1 );
for ( i= 0; i < 4; i ++ )
{
LEADImage1->Rotate( i * 720, ROTATE_RESIZE, RGB(255, 0, 0));
LEADImage2->InsertBitmapListItem( 0, LEADImage1->Bitmap);
}
LEADImage1->AddWeightedBitmaps( LEADImage2->BitmapList, NULL, BC_AVG );
}