Available in the LEADTOOLS Imaging toolkit. |
TransitionEffect example for Visual J++
This example paints a transition with a 255-step grayscale gradient.
LEAD1.setAutoRepaint( false );
LEAD1.setEffectDelay( (short) 50 );
LEAD1.Load( "c:\\lead\\images\\image1.cmp", (short) 0, (short) 0, (short) 1 );
LEAD1.setTransitionEffect( (short) LTOCXU.EfxPaintEffectConstants.EFX_EFFECT_WIPE_RECTANGLE_OUT );
LEAD1.setTransitionStyle( (short) LTOCXU.TransitionStyleEnum.EFX_TRANSITION_GRADIENT );
LEAD1.setGradientStyle( (short) LTOCXU.GradientStyleEnum.EFX_GRADIENT_ANGLE_TO_LT );
LEAD1.setGradientEndColor( new Color( 0, 0, 0 ) );
LEAD1.setGradientStartColor( new Color( 255, 255, 255 ) );
LEAD1.setGradientSteps( (short) 255 );
LEAD1.setAutoRepaint( true );