FunctionalLight example for C++ Builder
void __fastcall TForm1::Button1Click(TObject *Sender)
{
/* Load the bitmap, keeping the bits per pixel of the file */
LEADImage1->Load("e:\\image1.cmp", 0, 1, 1 );
/* Apply the linear lighting effect */
LEADImage1->FunctionalLight(0, 75, 0, 0, 0, LEADImage1->BitmapWidth/2, LEADImage1->BitmapHeight/2, 0, NULL, 0, FL_LINEAR_QUADRATIC + FL_LINEAR_OUTER);
}