VeriCutOutSelImageArea( FileName As Char, Width As Integer, Height As Integer )

Application object (Verify)

If AllowDrawing is set to one (1) in the [Verify] section in Ehlocal.ini, you can draw a rectangle in Verify normal mode (full-screen form image). To draw a rectangle that includes defined fields, hold down the Ctrl and Shift keys while drawing.

This method copies the image inside such a rectangle to a TIFF file. If there is no such rectangle, the current field image is copied instead.

The TIFF file is given the name specified by FileName. If no path is provided, the file is saved in the default directory for exported field images. (The default directory is specified by FieldImages in the [Directory] section of Ehlocal.ini.) If a file with the same name already exists, the image is added to the file, which means that the file becomes a multi-TIFF file.

Optional: If no file name is provided (empty string), the image is copied to the Clipboard. If the width and height of the image is other than zero, the image is stretched to fit the dimensions provided in Width and Height.

Returns 0 if successful, 1 if no rectangle existed and the current field image was used, and 2 if an error occurred during file operations.

Methods for the Application object for use with Verify