TransitionEffect example for C++ Builder
This example paints a transition with a 255-step grayscale gradient.
ILEADRasterIO * pRasterIO;
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);
LEADRasterView1->TransitionEffect = EFX_EFFECT_WIPE_RECTANGLE_OUT;
LEADRasterView1->TransitionStyle = EFX_TRANSITION_GRADIENT;
LEADRasterView1->GradientStyle = EFX_GRADIENT_ANGLE_TO_LT;
LEADRasterView1->GradientEndColor = (TColor)RGB(0, 0, 0);
LEADRasterView1->GradientStartColor = (TColor)RGB(255, 255, 255);
LEADRasterView1->GradientSteps = 255;
LEADRasterView1->AutoRepaint= True;