[sane-devel] Problem with setting tl_x, tl_y, br_x and br_y with Fujitsu fi-4120c

Henning Meier-Geinitz henning at meier-geinitz.de
Sun Apr 27 17:44:20 BST 2003


Hi,

On Sun, Apr 27, 2003 at 10:38:02AM -0500, Peter Chen wrote:
> I tried to set fi-4120c to tl_x=50, tl_y=0, br_x=150, br_y=100 with the

tl_x=50. 50 what? I mean, which unit? It's similar to your last
problem with the string list for "ADF". Not all options are
SANE_TYPE_INT. In this case it's a SANE_Fixed option so you must use a
fixed-point type. See the SANE-Standard for details.

>       // Set the resolutions to 300 dpi
>       if ( strcmp(opt->name, SANE_NAME_SCAN_X_RESOLUTION) == 0)
>       {
>           value = 300;
>           status = sane_control_option (device, i, SANE_ACTION_SET_VALUE,
> &value, &info);
>       }

That works, because the reolution option is an int option.



More information about the sane-devel mailing list