TextureAlphaBlend Example for C++ 5.0 and later
ILEADRaster* m_pRasterSrc= NULL;
CoCreateInstance(CLSID_LEADRaster, NULL, CLSCTX_ALL, IID_ILEADRaster, (void**)&m_pRasterSrc);
ILEADRaster* m_pRasterMask= NULL;
CoCreateInstance(CLSID_LEADRaster, NULL, CLSCTX_ALL, IID_ILEADRaster, (void**)&m_pRasterMask);
ILEADRaster* m_pRasterUnderlay = NULL;
CoCreateInstance(CLSID_LEADRaster, NULL, CLSCTX_ALL, IID_ILEADRaster, (void**)&m_pRasterUnderlay);
ILEADRasterIO* m_pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&m_pRasterIO);
ILEADRasterProcess* m_pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&m_pRasterProc);
m_pRasterIO->Load(m_pRasterSrc, "C:\\image1.cmp", 0, 0, 1);
m_pRasterIO->Load(m_pRasterMask, "C:\\FadeMask.cmp", 0, 0, 1);
m_pRasterProc->TextureAlphaBlend(m_LeadRasterView.GetRaster (), 0, 0, 100, 100, m_pRasterSrc, 0, 0, m_pRasterMask, 100, NULL, 0, 0);
m_pRasterProc->Release();
m_pRasterIO->Release();
m_pRasterMask->Release();
m_pRasterSrc->Release();
m_pRasterUnderlay->Release();