sane-project-website/old-archive/2000-09/0096.html

120 wiersze
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: image data format polarity</TITLE>
<META NAME="Author" CONTENT="Ingo Wilken (Ingo.Wilken@Informatik.Uni-Oldenburg.DE)">
<META NAME="Subject" CONTENT="Re: image data format polarity">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: image data format polarity</H1>
<!-- received="Mon Sep 11 00:31:37 2000" -->
<!-- isoreceived="20000911073137" -->
<!-- sent="Mon, 11 Sep 2000 09:37:03 +0200 (MET DST)" -->
<!-- isosent="20000911073703" -->
<!-- name="Ingo Wilken" -->
<!-- email="Ingo.Wilken@Informatik.Uni-Oldenburg.DE" -->
<!-- subject="Re: image data format polarity" -->
<!-- id="E13YO9H-0007Qb-00@petersfehn.Informatik.Uni-Oldenburg.DE" -->
<!-- inreplyto="200009110436.MAA24131@localhost.localdomain" -->
<STRONG>From:</STRONG> Ingo Wilken (<A HREF="mailto:Ingo.Wilken@Informatik.Uni-Oldenburg.DE?Subject=Re:%20image%20data%20format%20polarity&In-Reply-To=&lt;E13YO9H-0007Qb-00@petersfehn.Informatik.Uni-Oldenburg.DE&gt;"><EM>Ingo.Wilken@Informatik.Uni-Oldenburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Sep 11 2000 - 00:37:03 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0097.html">Nick Lamb: "Re: image data format polarity"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0095.html">Peck Dickens: "Re: SnapScan Backend"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0093.html">Petter Reinholdtsen: "Re: image data format polarity"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0097.html">Nick Lamb: "Re: image data format polarity"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0097.html">Nick Lamb: "Re: image data format polarity"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#96">[ date ]</A>
<A HREF="index.html#96">[ thread ]</A>
<A HREF="subject.html#96">[ subject ]</A>
<A HREF="author.html#96">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt; [David Paschal]
</EM><BR>
<EM>&gt; &gt; On the other hand, for 1-bit depths (lineart, halftone), 0 means
</EM><BR>
<EM>&gt; &gt; white and 1 means black. Is there any particular reason for this,
</EM><BR>
<EM>&gt; &gt; especially since xsane and xscanimage both end up having to invert
</EM><BR>
<EM>&gt; &gt; it anyway in order to display a preview?
</EM><BR>
<EM>&gt; This sounds like a bug to me. The only partly sensible reason I can
</EM><BR>
<EM>&gt; make up on the fly to use a encoding like this is to make sure black
</EM><BR>
<EM>&gt; writing on white paper give mostly 0 bits.
</EM><BR>
<P>That's not a bug, it's the PBM image format, see pbm(5):
<BR>
<P># It was originally designed to make it reasonable to mail
<BR>
# bitmaps between different types of machines using the typical stupid
<BR>
# network mailers we have today.
<BR>
[...]
<BR>
# - Width * height bits, each either '1' or '0', starting at the top-left
<BR>
# corner of the bitmap, proceeding in normal English reading order.
<BR>
#
<BR>
# - The character '1' means black, '0' means white.
<BR>
<P>And yes, it obviously was designed that way, so a human can see the
<BR>
image without using a graphics display program, just by looking at
<BR>
the ASCII representation (assuming a large screen and proper formatting,
<BR>
the manpage has a tiny example).
<BR>
<P>Regards,
<BR>
Ingo
<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?Subject=Re:%20image%20data%20format%20polarity&In-Reply-To=&lt;E13YO9H-0007Qb-00@petersfehn.Informatik.Uni-Oldenburg.DE&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0097.html">Nick Lamb: "Re: image data format polarity"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0095.html">Peck Dickens: "Re: SnapScan Backend"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0093.html">Petter Reinholdtsen: "Re: image data format polarity"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0097.html">Nick Lamb: "Re: image data format polarity"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0097.html">Nick Lamb: "Re: image data format polarity"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#96">[ date ]</A>
<A HREF="index.html#96">[ thread ]</A>
<A HREF="subject.html#96">[ subject ]</A>
<A HREF="author.html#96">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Mon Sep 11 2000 - 00:32:35 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>