TransitionEffect example for C++ 5.0 and later

This example paints a transition with a 255-step grayscale gradient.

m_LEADRasterView1.SetAutoRepaint(FALSE);
m_LEADRasterView1.SetTransitionDelay(50);
pRasterIO->Load(m_LEADRasterView1.GetRaster().m_lpDispatch, "c:\\lead\\images\\image1.cmp", 0, 0, 1);
m_LEADRasterView1.SetTransitionEffect(EFX_EFFECT_WIPE_RECTANGLE_OUT);
m_LEADRasterView1.SetTransitionStyle(EFX_TRANSITION_GRADIENT);
m_LEADRasterView1.SetGradientStyle(EFX_GRADIENT_ANGLE_TO_LT);
m_LEADRasterView1.SetGradientEndColor(RGB(0, 0, 0));
m_LEADRasterView1.SetGradientStartColor(RGB(255, 255, 255));
m_LEADRasterView1.SetGradientSteps(255);
m_LEADRasterView1.SetAutoRepaint(TRUE);