ZoomIn method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int ZoomIn (void);

Delphi Syntax

ZoomIn Integer;

Overview

Refer to Capturing an Image from the Screen.

Remarks

Changes the mouse pointer to a magnifying glass in the center of a rectangle and begins a "ZoomIn" screen capture. When the user moves the mouse pointer, the area inside the "ZoomIn" rectangle is captured to the Main Control and zoomed by the amount specified in the PaintZoomFactor property.

The initial size of the zoom rectangle is based on the size of the control and the existing PaintZoomFactor property at the time ZoomIn is called. During the capture, pressing the +,- or PageUp, PageDown keys will adjust the ZoomIn rectangle and zoom factor. Once the left mouse button is clicked, the capture is completed, the image is stored in the Main Control's Bitmap, and the OnZoomInDone event is generated.

There is one property associated with this method. The EnableZoomInRect property determines whether or not to show the ZoomIn rectangle.

See Also

Elements:

OnZoomInDone event, Capture method, EnableZoomInRect property

Topics:

Raster images: Capturing a screen image