AddBorder example for C++ 5.0 and later
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
pRasterProc->AddBorder(m_RasterView1.GetRaster (), 30, 30, 30, 30, BORDER_OUTSIDE, BORDER_STYLE_OPAQUE, BORDER_EFFECT_CURVEDIN, NULL, BORDER_GRAD_INSIDEOUT, RGB(200, 150, 150), 0, 200, FALSE, FALSE, 0, BORDER_SHADOW_LEFT, FALSE);
pRasterProc->Release();