GetScanArea

#include "BiTwain.h"

 

int CALLBACK GetScanArea(LPIMGLAYOUT rect)

Description

This function retrieves the scanning area. The measurement of the area depends on the value of ICAP_UNITS capability. You can get this value with GetUnit. function and specify the unit with SetUnit function. In common cases th unit is inch.

typedef struct tagIMGLAYOUT

{

    float    left;

    float    top;

    float    right;

    float    bottom;

} IMGLAYOUT, *LPIMGLAYOUT;

Parameters

LPIMGLAYOUT

rect

This is tho output parameter. It will contain the scanning area.

Return values

Return TW_OK on success or an error code on failure.

Requirements

Header :     Declared in BiTwain.h; include BiTwain.h.

Library :    Use BiTwain.lib.

DLLs :       BiTwain.dll.