GrayScaleToMultitone 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);

   m_pRasterProc->PutMultitoneColors (0 ,RGB(255, 255, 0));
   m_pRasterProc->PutMultitoneColors (0 ,RGB(255, 0, 0));

   m_pRasterProc->GrayScaleToMultitone(m_LeadRasterView.GetRaster(), DUOTONE, LINEAR, DT_MIX);

   m_pRasterProc->Release();