ContourFilter example for C++ 5.0 and later
short nRet;
//L_KEY_MEDICAL is the unlock support string for L_SUPPORT_MEDICAL
m_LEADRasterView1.GetRaster().UnlockSupport(L_SUPPORT_MEDICAL, L_KEY_MEDICAL);
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
IID_ILEADRasterProcess, (void**)&pRasterProc);
nRet = pRasterProc->ContourFilter(m_LEADRasterView1.GetRaster(),
20, 35, 5, CONTOUR_APPROX_COLOR);
pRasterProc->Release();