FeatherAlphaBlend example for Visual C++
ILEADRasterProcess *pRasterProc=NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
ILEADRasterIO *pRasterIO=NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
ILEADRaster *pRaster2=NULL;
CoCreateInstance(CLSID_LEADRaster, NULL, CLSCTX_ALL, IID_ILEADRaster, (void**)&pRaster2);
pRaster2->CreateBitmap (800, 600, 24);
pRaster2->SetRgnRoundRect (50, 50, 500, 500, 150, 150, L_RGN_SET);
pRasterProc->CreateFadedMask (m_RasterView2.GetRaster (), pRaster2, 60, 20, 3, 0, FadedMaskConstants(FADE_DUMPFILL | FADE_NOTRANSPARENCY), 255, RGB(0, 0, 255));
pRasterIO->Load (pRaster2, "c:\\temp\\test.cmp", 0, 1, 1);
pRasterProc->FeatherAlphaBlend (m_RasterView1.GetRaster(), 0, 0, m_RasterView2.GetRaster().GetBitmapWidth (), m_RasterView2.GetRaster().GetBitmapHeight (), pRaster2, 0, 0, m_RasterView2.GetRaster());
pRaster2->Release();
pRasterProc->Release();
pRasterIO->Release();