sane-project-website/old-archive/2001-05/0048.html

104 wiersze
4.2 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: SANE API &amp; file format</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
<META NAME="Subject" CONTENT="Re: SANE API &amp; file format">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: SANE API &amp; file format</H1>
<!-- received="Thu May 3 10:48:08 2001" -->
<!-- isoreceived="20010503174808" -->
<!-- sent="Thu, 3 May 2001 19:57:25 +0200" -->
<!-- isosent="20010503175725" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="henning@meier-geinitz.de" -->
<!-- subject="Re: SANE API &amp; file format" -->
<!-- id="20010503195725.C30124@vortex.swb.de" -->
<!-- inreplyto="000001c0d3cf$9fbf9dc0$0c2c7aa3@TIL" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20SANE%20API%20&amp;%20file%20format&In-Reply-To=&lt;20010503195725.C30124@vortex.swb.de&gt;"><EM>henning@meier-geinitz.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu May 03 2001 - 10:57:25 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: SANE API &amp; file format"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0047.html">Henning Meier-Geinitz: "Re: A simple question"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0045.html">shailendra mehta: "SANE API &amp; file format"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: SANE API &amp; file format"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: SANE API &amp; file format"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#48">[ date ]</A>
<A HREF="index.html#48">[ thread ]</A>
<A HREF="subject.html#48">[ subject ]</A>
<A HREF="author.html#48">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Thu, May 03, 2001 at 06:20:25PM +0530, shailendra mehta wrote:
<BR>
<EM>&gt; I want to know how a scanned image can be stored as a jpeg/tiff/g3 format
</EM><BR>
<EM>&gt; file with sane api.
</EM><BR>
<EM>&gt; Because sane apis provide just a sane_read function which returns bytes
</EM><BR>
<EM>&gt; which are read till EOF.
</EM><BR>
<EM>&gt; But how to store those bytes in above mentioned formats that is unknown.
</EM><BR>
<P>Storing shouldn't be a problem. Just translate the data you got
<BR>
through the SANE API to whatever file format you want. Look at the
<BR>
source code of xsane for how to do that.
<BR>
<P>However, sending data from the backend to the frontend using the SANE
<BR>
API as jpeg or any other non-sane format is not supported by the
<BR>
current sane standard.
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;Henning
<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:%20SANE%20API%20&amp;%20file%20format&In-Reply-To=&lt;20010503195725.C30124@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: SANE API &amp; file format"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0047.html">Henning Meier-Geinitz: "Re: A simple question"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0045.html">shailendra mehta: "SANE API &amp; file format"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: SANE API &amp; file format"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0049.html">Stephen Williams: "Re: SANE API &amp; file format"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#48">[ date ]</A>
<A HREF="index.html#48">[ thread ]</A>
<A HREF="subject.html#48">[ subject ]</A>
<A HREF="author.html#48">[ 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>Thu May 03 2001 - 10:48:28 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>