GrayScaleToMultitone example for C++ Builder
void __fastcall TForm1::GrayScaleToMultitone1Click(TObject *Sender)
{
COLORREF crColors [2];
/* Change the bitmap to grayscale bitmap */
LEADImage1->GrayScale( 8 );
/* The new colors */
crColors[0]= RGB ( 255, 255, 0 );
crColors[1]= RGB ( 255, 0, 0 );
/* Apply Multitone conversion */
LEADImage1->GrayScaleToMultitone( DT_DUOTONE, (pCOLORREF)crColors, DT_LINEAR, NULL, DT_REPLACE );
}