LineProfile C++ Builder Example
void __fastcall TForm1::Button7Click(TObject *Sender)
{
L_PINT pRed= NULL;
L_PINT pGreen= NULL;
L_PINT pBlue= NULL;
TPoint FirstPoint, SecondPoint;
LEADImage1->LineProfile(FirstPoint, SecondPoint, pRed, pGreen, pBlue );
// … use the colors in the arrays here
// free the three buffers
GlobalFreePtr ( pRed );
GlobalFreePtr ( pGreen );
GlobalFreePtr ( pBlue );
}