ZoomIn method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Access 2.0 example

Access 95, 97 example
Visual J++ example

Syntax short ZoomIn ();

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 ZoomInDone 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:  ZoomInDone event, Capture method, EnableZoomInRect property

Topics:  Raster images: Capturing a screen image