sane-project-website/old-archive/1999-05/0124.html

70 wiersze
3.1 KiB
HTML
Czysty Zwykły widok Historia

<!-- received="Thu May 13 06:22:42 1999 PDT" -->
<!-- sent="Thu, 13 May 1999 16:23:48 +0300" -->
<!-- name="Milon Firikis" -->
<!-- email="milonf@ariadne-t.gr" -->
<!-- subject="Re: [Announce] WinSANE 0.1.0.0 Release" -->
<!-- id="" -->
<!-- inreplyto="[Announce] WinSANE 0.1.0.0 Release" -->
<title>sane-devel: Re: [Announce] WinSANE 0.1.0.0 Release</title>
<h1>Re: [Announce] WinSANE 0.1.0.0 Release</h1>
<b>Milon Firikis</b> (<a href="mailto:milonf@ariadne-t.gr"><i>milonf@ariadne-t.gr</i></a>)<br>
<i>Thu, 13 May 1999 16:23:48 +0300</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#124">[ date ]</a><a href="index.html#124">[ thread ]</a><a href="subject.html#124">[ subject ]</a><a href="author.html#124">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0125.html">John Stoffel: "preview window feature request"</a>
<li> <b>Previous message:</b> <a href="0123.html">Ewald R. de Wit: "Re: Coolscan LS-30 + best scanner"</a>
<li> <b>Maybe in reply to:</b> <a href="0070.html">Brian Macy: "[Announce] WinSANE 0.1.0.0 Release"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
Nick Lamb wrote:<br>
<i>&gt; </i><br>
<i>&gt; On Wed, 12 May 1999, Milon Firikis wrote:</i><br>
<i>&gt; </i><br>
<i>&gt; &gt; For gray images:</i><br>
<i>&gt; &gt; white --&gt; 0</i><br>
<i>&gt; &gt; black --&gt; 255 (240)</i><br>
<i>&gt; </i><br>
<i>&gt; Milon - please enlighten us as to why we should believe you and not</i><br>
<i>&gt; (1) Most existing hardware and software</i><br>
<i>&gt; (2) The SANE standard documents</i><br>
<i>&gt; </i><br>
<i>&gt; ?</i><br>
<i>&gt; </i><br>
<p>
AHA! it seems that my backend managed to confused me this time. Of<br>
course you are right and I am wrong. In gray scale images pixel values<br>
represents intensity. Full intensity (255) is white and not black. The<br>
reason I get confused is that apple scanners do it the other way around<br>
and I failed to see where exactly I made the conversion in the byte<br>
stream.<br>
<p>
Looks like a good idea to me to have this details either implemented or<br>
at least documented. The macros could be something like<br>
SANE_SCALE_TO_8(4bit value) // Multiplying with 17 as Matthias Fleischer<br>
proposed<br>
SANE_SCALE_TO_16(xbit value where x, 8&lt;x&lt;16) // As proposed by Andreas<br>
Beck in <a href="http://www.mostang.com/mail-archive/sane-devel/1999-04/0097.html">http://www.mostang.com/mail-archive/sane-devel/1999-04/0097.html</a><br>
<p>
<p>
MF<br>
<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="0125.html">John Stoffel: "preview window feature request"</a>
<li> <b>Previous message:</b> <a href="0123.html">Ewald R. de Wit: "Re: Coolscan LS-30 + best scanner"</a>
<li> <b>Maybe in reply to:</b> <a href="0070.html">Brian Macy: "[Announce] WinSANE 0.1.0.0 Release"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>