CaptureSelectedObject Example for C++ 5.0 and later
/*set cursor*/
m_pRasterScr1.PutCaptureObjectSelectCursorIndex(1);
/*disable invert colors*/
m_pRasterScr1.PutCaptureObjectInvert(FALSE);
/*disable keyboard*/
m_pRasterScr1.PutCaptureObjectEnableKeyboard(FALSE);
/*set object border width*/
m_pRasterScr1.PutCaptureObjectBorderWidth(3);
/*do the capture*/
m_pRasterScr1.CaptureSelectedObject();
/*copy the captured image to a Main Control*/
m_LEADRasterView1.GetRaster().SetBitmap(m_pRasterScr1.GetBitmap ());
/*reset options*/
m_pRasterScr1.ResetObjectOptions();