[sane-devel] help with a frontend, please
Felix Rubio Dalmau
felixrubiodalmau at yahoo.es
Wed Mar 22 22:32:23 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Hi!
here is the part of the code I want to use to change the settings,
but they are still unchangeable. Is there anything wrong?
valor2=Xo;
estat=sane_control_option(gestor,22,SANE_ACTION_SET_VALUE,&valor2,valor);
printf("%s: ",sane_strstatus(estat));
valor2=Yo;
estat=sane_control_option(gestor,23,SANE_ACTION_SET_VALUE,&valor2,valor);
printf("%s: ",sane_strstatus(estat));
valor2=Xo+WIDTH;
estat=sane_control_option(gestor,24,SANE_ACTION_SET_VALUE,&valor2,valor);
printf("%s: ",sane_strstatus(estat));
valor2=Yo+HEIGHT;
estat=sane_control_option(gestor,25,SANE_ACTION_SET_VALUE,&valor2,valor);
printf("%s\n",sane_strstatus(estat));
What should I write to make the changes permanent? I need to change
the dimensions of what is scanned, but I don't know how to do it.
Message: 4
Date: Tue, 21 Mar 2006 10:33:41 -0500 (EST)
From: "m. allan noah" <anoah at pfeiffer.edu>
Subject: Re: [sane-devel] Help with a frontend, plis
To: sane-devel at lists.alioth.debian.org
Message-ID: <Pine.LNX.4.61.0603211032280.9757 at limos.pfeiffer.edu>
Content-Type: text/plain; charset="iso-8859-1"
are you calling sane_get_parameters() after you have changed the options?
allan
- --
Josep Felix Rubio Dalmau
GnuPG Public Key:
http://keyserver.veridis.com:11371/export?id=-9021467632073768555
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEIdB2gs1O/IWPAZURAy0ZAKCNTXKrqRj6TRpFvb9TlWa39vVC6wCeJvvj
a4rTK0Hb7a/KuTHuhKLheWk=
=VLR3
-----END PGP SIGNATURE-----
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
More information about the sane-devel
mailing list