Available in the LEADTOOLS Imaging toolkit. |
TransitionEffect example for C++ 4.0 and later
This example paints a transition with a 255-step grayscale gradient.
m_Lead1.SetAutoRepaint(FALSE);
m_Lead1.SetEffectDelay(50);
m_Lead1.Load("c:\\lead\\images\\image1.cmp", 0, 0, 1);
m_Lead1.SetTransitionEffect(EFX_EFFECT_WIPE_RECTANGLE_OUT);
m_Lead1.SetTransitionStyle(EFX_TRANSITION_GRADIENT);
m_Lead1.SetGradientStyle(EFX_GRADIENT_ANGLE_TO_LT);
m_Lead1.SetGradientEndColor(RGB(0, 0, 0));
m_Lead1.SetGradientStartColor(RGB(255, 255, 255));
m_Lead1.SetGradientSteps(255);
m_Lead1.SetAutoRepaint(TRUE);