Available in the LEADTOOLS Imaging toolkit. |
PatternStyle example for C++ 4.0 and later
This example paints a transition with a diagonal cross pattern.
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_PATTERN);
m_Lead1.SetPatternStyle(EFX_PATTERN_DIAG_CROSS);
m_Lead1.SetPatternBackColor(RGB(255, 0, 0));
m_Lead1.SetPatternForeColor(RGB(0, 0, 255));
m_Lead1.SetAutoRepaint(TRUE);