CaptureArea Example for C++ 5.0 and later
m_pRasterScr1.PutScaleMode(SCALEMODE_PIXEL);
//show area info window
m_pRasterScr1.PutCaptureAreaShowInfoWindow(TRUE);
//show area size during capture
m_pRasterScr1.PutCaptureAreaShowAreaSize(TRUE);
//enable sensitive area info window
m_pRasterScr1.PutCaptureAreaSensitiveInfoWindow(TRUE);
//set zoom factor
m_pRasterScr1.PutCaptureAreaZoomFactor(CAPTURE_AREA_ZOOM_BY3X);
//position capture area info window
m_pRasterScr1.PutCaptureAreaInfoTop(100.0f);
m_pRasterScr1.PutCaptureAreaInfoLeft(100.0f);
//size the capture area info window
m_pRasterScr1.PutCaptureAreaInfoWidth(100.0f);
m_pRasterScr1.PutCaptureAreaInfoHeight(200.0f);
//set colors
m_pRasterScr1.PutCaptureAreaDrawLineColor(RGB(0,0,0));
m_pRasterScr1.PutCaptureAreaTextForeColor(RGB(0,0,255));
m_pRasterScr1.PutCaptureAreaTextBackColor(RGB(0,0,0));
//capture with a region
m_pRasterScr1.PutCaptureAreaBitmapWithRegion(TRUE);
//show cursor position with opaque background
m_pRasterScr1.PutCaptureAreaShowCursorPosition(TRUE);
m_pRasterScr1.PutCaptureAreaShowOpaqueText(TRUE);
//disable keyboard
m_pRasterScr1.PutCaptureAreaEnableKeyboard(FALSE);
//do not include cursor in captured image
m_pRasterScr1.PutCaptureAreaIncludeCursor(FALSE);
//setup the background
m_pRasterScr1.PutCaptureAreaFillBackColor(RGB(255,0,0));
m_pRasterScr1.PutCaptureAreaFillForeColor(RGB(0,0,255));
m_pRasterScr1.PutCaptureAreaFillPattern(CAPTURE_AREA_PATTERN_DIAGCROSS);
//capture a round rect
m_pRasterScr1.PutCaptureAreaDrawLineStyle(CAPTURE_AREA_LINE_DASHDOT);
m_pRasterScr1.PutCaptureAreaDrawEllipseHeight(5.0f);
m_pRasterScr1.PutCaptureAreaDrawEllipseWidth(5.0f);
//show cursor while drawing
m_pRasterScr1.PutCaptureAreaUseCrossLinesCursor(FALSE);
m_pRasterScr1.PutCaptureAreaDrawCursorIndex(1);
m_pRasterScr1.PutCaptureAreaShowDrawCursor(TRUE);
//do the capture
m_pRasterScr1.CaptureArea(SCR_CAP_AREA_ROUNDRECT);
//copy the image to a Main Control
m_LEADRasterView1.GetRaster().SetBitmap(m_pRasterScr1.GetBitmap ());