Description This method specifies the scanning area. The measurement of the area depends on the value of ICAP_UNITS capability. You can get this value with GetUnit method and specify the unit with SetUnit method. In common cases th unit is inch.
Usage ret = [form.]TWAIN. SetScanArea Left Top Right Bottom
Returns ret Long Return TW_OK on success or an error code on failure.
Remarks Left float Left coordinate of the scanning area.
Top float Top coordinate of the scanning area.
Right float Right coordinate of the scanning area.
Bottom float Bottom coordinate of the scanning area.
Programing Notes Important: Before scanning, if the scanner specific driver user interface is enabled, the driver most likely will overwrite the scan area value set by this method.
See Also GetScanArea Method