ApplyMathLogic example for C++ Builder
void __fastcall TForm1::Button1Click(TObject *Sender)
{
/* Load the bitmap, keeping the bits per pixel of the file */
LEADImage1->Load("image1.cmp", 0, 1, 1 );
/* Multiply the colors of the bitmap using a factor of 1.51 */
LEADImage1->ApplyMathLogic(151, AML_OP_MUL + CHANNEL_MASTER + AML_VALUE_NOP + AML_RES_NOP);
}