ApplyMathLogic Example for C++ 5.0 and later

ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);

m_pRasterProc->ApplyMathLogic(m_LeadRasterView.GetRaster (),151,AML_OP_MUL |
                                                      CHANNEL_MASTER |
                                                      AML_VALUE_NOP |
                                                      AML_RES_NOP);

m_pRasterProc->Release();