EffectSpeed Example for C++ 5.0 and later
ILEADRasterIO *m_pRasterIO = NULL;
m_LeadRasterView.SetAutoRepaint(FALSE);
CoCreateInstance(
CLSID_LEADRasterIO,
NULL,
CLSCTX_ALL,
IID_ILEADRasterIO,
(void**)&m_pRasterIO
);
m_LeadRasterView.SetTransitionDelay(50);
m_pRasterIO->Load(m_LeadRasterView2.GetRaster().m_lpDispatch, "c:\\1.cmp", 0, 0, 1);
m_LeadRasterView.SetTransitionEffect(EFX_EFFECT_WIPE_RECTANGLE_OUT);
m_LeadRasterView.SetTransitionStyle(EFX_TRANSITION_GRADIENT);
m_LeadRasterView.EffectSpeed = 0;
m_LeadRasterView.EffectCycles = 0;
m_LeadRasterView.SetGradientStyle(EFX_GRADIENT_ANGLE_TO_LT);
m_LeadRasterView.SetGradientEndColor(RGB(0, 0, 0));
m_LeadRasterView.SetGradientStartColor(RGB(255, 255, 255));
m_LeadRasterView.SetGradientSteps(255);
m_LeadRasterView.SetAutoRepaint(TRUE);
m_pRasterIO->Release();