EnablePaint example for C++ Builder
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
//disable the paint
LEADRasterView1->EnablePaint = False;
//do whatever changes you want-> The control will not repaint
pRasterProc->Size ( LEADRasterView1->Raster, LEADRasterView1->Raster->BitmapWidth * 2,
LEADRasterView1->Raster->BitmapHeight * 2, RESIZE_BICUBIC ) ;
// re-enable the paint
LEADRasterView1->EnablePaint = True;
// call ForceRepaint because the control will not automatically repaint
LEADRasterView1->ForceRepaint ( ) ;
pRasterProc-> Release ( );