GrayScaleToDuotone Example for C++ 5.0 and later
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterProc->Grayscale(m_LeadRasterView.GetRaster (), 8);
for (int i = 0; i<256;++i)
{
m_pRasterProc->PutGrayScaleRed(i, i);
m_pRasterProc->PutGrayScaleGreen(i, 100);
m_pRasterProc->PutGrayScaleBlue(i,20);
}
m_pRasterProc->GrayScaleToDuotone(m_LeadRasterView.GetRaster(), RGB(0, 0, 0), 1);
m_pRasterProc->Release();