MinFilter example for C++ 5.0 and later

Note: This topic is for Document/Medical only.

This example dilates dark objects and repaints the image.
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL,
                 IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->MinFilter(m_LEADRasterView1.GetRaster(), 3);
m_LEADRasterView1.ForceRepaint();
pRasterProc->Release();