PatternStyle example for C++ 5.0 and later

This example paints a transition with a diagonal cross pattern.

m_LEADRasterView1.SetAutoRepaint(FALSE);
m_LEADRasterView1.SetTransitionDelay(50);

ILEADRasterIO *pRasterIO=NULL;

CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
pRasterIO->Load(m_LEADRasterView1.GetRaster().m_lpDispatch, "..\\..\\..\\..\\images\\image1.cmp", 0, 0, 1);
pRasterIO->Release();

//c:\\lead\\images\\image1.cmp", 0, 0, 1);
m_LEADRasterView1.SetTransitionEffect(EFX_EFFECT_WIPE_RECTANGLE_OUT);
m_LEADRasterView1.SetTransitionStyle(EFX_TRANSITION_PATTERN);
m_LEADRasterView1.SetPatternStyle(EFX_PATTERN_DIAG_CROSS);
m_LEADRasterView1.SetPatternBackColor(RGB(255, 0, 0));
m_LEADRasterView1.SetPatternForeColor(RGB(0, 0, 255));
m_LEADRasterView1.SetAutoRepaint(TRUE);