sane-project-website/old-archive/1998-04/0163.html

114 wiersze
5.7 KiB
HTML

<!-- received="Thu Apr 16 05:41:13 1998 PDT" -->
<!-- sent="Thu, 16 Apr 1998 14:40:11 +0200 (METDST)" -->
<!-- name="Stefan Gombar" -->
<!-- email="e9125065@student.tuwien.ac.at" -->
<!-- subject="Re: Need scanner info, please (OS/2, but also others)" -->
<!-- id="Pine.A41.3.95.980416141119.77358A-100000@stud1.tuwien.ac.at" -->
<!-- inreplyto="m0yPllZ-0000cLC@charon.beck-sw.de" -->
<title>sane-devel: Re: Need scanner info, please (OS/2, but also others)</title>
<h1>Re: Need scanner info, please (OS/2, but also others)</h1>
<b>Stefan Gombar</b> (<a href="mailto:e9125065@student.tuwien.ac.at"><i>e9125065@student.tuwien.ac.at</i></a>)<br>
<i>Thu, 16 Apr 1998 14:40:11 +0200 (METDST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#163">[ date ]</a><a href="index.html#163">[ thread ]</a><a href="subject.html#163">[ subject ]</a><a href="author.html#163">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0164.html">Timothy Kelm: "Mustek Paragon 1200IIISP"</a>
<li> <b>Previous message:</b> <a href="0162.html">becka@rz.uni-duesseldorf.de: "Re: Mustek CG800 Hand Held Scanner"</a>
<li> <b>In reply to:</b> <a href="0161.html">becka@rz.uni-duesseldorf.de: "Re: Need scanner info, please (OS/2, but also others)"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0167.html">becka@rz.uni-duesseldorf.de: "Re: Need scanner info, please (OS/2, but also others)"</a>
<li> <b>Reply:</b> <a href="0167.html">becka@rz.uni-duesseldorf.de: "Re: Need scanner info, please (OS/2, but also others)"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
On Thu, 16 Apr 1998 <a href="mailto:becka@rz.uni-duesseldorf.de">becka@rz.uni-duesseldorf.de</a> wrote:<br>
<p>
<i>&gt; Hi !</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; I am writing a little program (it is called "fax 'n copy", a little</i><br>
<i>&gt; &gt; utility for copying and faxing), and I want to support as many scanners as</i><br>
<i>&gt; &gt; possible.</i><br>
<i>&gt; &gt; Therefore I need the output of the following commands:</i><br>
<i>&gt; &gt; </i><br>
<i>&gt; &gt; *) scanimage -L</i><br>
<i>&gt; &gt; </i><br>
<i>&gt; &gt; and</i><br>
<i>&gt; &gt; </i><br>
<i>&gt; &gt; *) scanimage --help -d DEVICE (your device)</i><br>
<i>&gt; &gt; </i><br>
<i>&gt; &gt; Or, is there a different way to get these informations of all SANE supported</i><br>
<i>&gt; &gt; scanners?</i><br>
<i>&gt; </i><br>
<i>&gt; What do you need that output for ?</i><br>
<i>&gt; </i><br>
<i>&gt; Please note, that frontends (I'd consider your program as something like </i><br>
<i>&gt; that) should not try to "detect" some scanner or its options due to the</i><br>
<i>&gt; options it exhibits.</i><br>
<p>
Hi!<br>
<p>
I exspected an answer like this. As you may have noticed it, I am new<br>
to SANE. Ok, I know that this is not the best way to use SANE,<br>
but my program is written in REXX and I don't have the time to <br>
wrap SANE into a REXX-DLL, so that I can more easily access it from<br>
a script (I don't like these compiling languages, runtime errors that<br>
only occur when the users tries the program are much more exciting...)<br>
Maybe I will do this later.<br>
<p>
Another thing is that it seems that every model has different commands<br>
e.g. for setting the resolutions, etc. Is this true?<br>
I know that at least for a Microtek it says '-resolution' and<br>
for a Canon '-Xresolution' and '-Yresolution'.<br>
Or to define the scan area, one says mm, the other says pixels. I know<br>
that I can convert them - I even know how ;-) - but this suprises me.<br>
Is there a more general way to access the scanners?<br>
Impos/2 for example provides a consistent API for accessing the<br>
scanners. Is there something similar available for SANE?<br>
<p>
<i>&gt; An exception to it is the usage of predefined options defined in some SANE</i><br>
<i>&gt; file.</i><br>
<i>&gt; </i><br>
<i>&gt; BTW: It looks like you are trying to make a wrapper for scanimage ...</i><br>
<i>&gt; Well - this is the quick way, but I think a cleaner way would be to make</i><br>
<i>&gt; the program a "real" frontend.</i><br>
<p>
Again, I know this. So, if anyone could help me to do this 'dirty<br>
thing', it would be nice. I need it because I want to provide as many<br>
as possible supported scanners out of the box. <br>
And I promise to look for a better solution in the future...<br>
<p>
<i>&gt; CU, Andy</i><br>
<i>&gt; </i><br>
<i>&gt; -- </i><br>
<i>&gt; = Andreas Beck | Email : &lt;<a href="mailto:andreas.beck@ggi-project.org">andreas.beck@ggi-project.org</a>&gt; =</i><br>
<p>
Best regards,<br>
<p>
Stefan Gombar<br>
<p>
-----------------------------------<br>
Stefan Gombar<br>
Certified OS/2 Engineer<br>
Member of TeamOS/2 Austria<br>
email: <a href="mailto:e9125065@stud1.tuwien.ac.at">e9125065@stud1.tuwien.ac.at</a><br>
<p>
<p>
<pre>
--
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0164.html">Timothy Kelm: "Mustek Paragon 1200IIISP"</a>
<li> <b>Previous message:</b> <a href="0162.html">becka@rz.uni-duesseldorf.de: "Re: Mustek CG800 Hand Held Scanner"</a>
<li> <b>In reply to:</b> <a href="0161.html">becka@rz.uni-duesseldorf.de: "Re: Need scanner info, please (OS/2, but also others)"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0167.html">becka@rz.uni-duesseldorf.de: "Re: Need scanner info, please (OS/2, but also others)"</a>
<li> <b>Reply:</b> <a href="0167.html">becka@rz.uni-duesseldorf.de: "Re: Need scanner info, please (OS/2, but also others)"</a>
<!-- reply="end" -->
</ul>