PatternStyle example for C++ Builder
This example paints a transition with a diagonal cross pattern.
LEADRasterIO* pRasterIO= NULL;
CoCreateInstance(CLSID_LEADRasterIO, NULL, CLSCTX_ALL, IID_ILEADRasterIO, (void**)&pRasterIO);
LEADRasterView1->AutoRepaint = False;
LEADRasterView1->TransitionDelay = 50;
pRasterIO->Load (LEADRasterView1->Raster, AnsiToOLESTR("v:\\images\\image1.cmp"), 0, 0, 1);
pRasterIO-> Release( );
LEADRasterView1->TransitionEffect = EFX_EFFECT_WIPE_RECTANGLE_OUT;
LEADRasterView1->TransitionStyle = EFX_TRANSITION_PATTERN;
LEADRasterView1->PatternStyle = EFX_PATTERN_DIAG_CROSS;
LEADRasterView1->PatternBackColor = (TColor)RGB(255, 0, 0);
LEADRasterView1->PatternForeColor = (TColor)RGB(0, 0, 255);
LEADRasterView1->AutoRepaint = True;