Available in the LEADTOOLS Imaging toolkit. |
PatternStyle example for Visual J++
This example paints a transition with a diagonal cross pattern.
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_PATTERN );
LEAD1.setPatternStyle( (short) LTOCXU.PatternStyleEnum.EFX_PATTERN_DIAG_CROSS );
LEAD1.setPatternBackColor( new Color( 255, 0, 0 ) );
LEAD1.setPatternForeColor( new Color( 0, 0, 255 ) );
LEAD1.setAutoRepaint( true );