Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas019.isp.belgacom.be (localhost [127.0.0.1])
        by inav002.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k03F4l8c015506
        for <joris.at.lebbeke@skynet.be>; Tue, 3 Jan 2006 16:04:47 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx002.isp.belgacom.be (inmx002.isp.belgacom.be [195.238.5.7])
        by inas019.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k03F4bXD021100
        for <joris.at.lebbeke@skynet.be>; Tue, 3 Jan 2006 16:04:40 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx002.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k03F4TdS028905
        for <joris.at.lebbeke@skynet.be>; Tue, 3 Jan 2006 16:04:30 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k03Extnq023018;
	Tue, 3 Jan 2006 10:00:35 -0500
Received: from scmze001.ssan.egs-seg.gc.ca (scmze001.ssan.egs-seg.gc.ca
	[205.194.19.85])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k03Exr88023015
	for <tiff@lists.maptools.org>; Tue, 3 Jan 2006 09:59:53 -0500
Received: from bulwark1.ic.gc.ca ([192.197.178.1])
	by scmze001.ssan.egs-seg.gc.ca with ESMTP; 03 Jan 2006 09:59:54 -0500
Received: from msg-gate2.ic.gc.ca ([142.53.11.42]) by bulwark1.ic.gc.ca
	via smtpd (for scmze001.ssan.egs-seg.gc.ca [205.194.19.85]) with ESMTP;
	Tue, 3 Jan 2006 09:59:52 -0500
Received: from parapet11.ic.gc.ca (parapet11.ic.gc.ca [142.53.11.253])
	by msg-gate2.ic.gc.ca (Switch-3.1.7/Switch-3.1.7) with ESMTP id
	k03ExqWJ023729
	for <tiff@lists.maptools.org>; Tue, 3 Jan 2006 09:59:52 -0500 (EST)
Received: from msg-con2.icent.ic.gc.ca by parapet11.ic.gc.ca
	via smtpd (for msg-gate2.ic.gc.ca [142.53.11.42]) with ESMTP;
	Tue, 3 Jan 2006 09:59:52 -0500
Received: from msg-con1.icent.ic.gc.ca ([142.53.28.148]) by
	msg-con2.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 3 Jan 2006 09:59:52 -0500
Received: from msg-mb2.icent.ic.gc.ca ([142.53.28.151]) by
	msg-con1.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 3 Jan 2006 09:59:52 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: RE: [Tiff] how to write C code for saving as TIFF?
Date: Tue, 3 Jan 2006 09:59:52 -0500
Message-ID: <F78E6BBD22A6FC4489EBE25045407908036FA4DB@msg-mb2.icent.ic.gc.ca>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] how to write C code for saving as TIFF?
Thread-Index: AcYPfNGNKGIS0KQqSWKVN1ubw9laJwA+I00g
From: "Pallek, Bernie: #CIPO - OPIC" <Pallek.Bernie@ic.gc.ca>
To: <tiff@lists.maptools.org>
X-OriginalArrivalTime: 03 Jan 2006 14:59:52.0551 (UTC)
	FILETIME=[59CE3770:01C61076]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k03Exr88023015
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.000010b5
X-MSP-STORE: Tue, 03 Jan 2006 16:04:55 +0100
Status:   

> I want to save a fax scanned page(monochrome) as TIFF file.
> Is there any VC++ function that can do this? i.e. gets the 
> scanned page(0&1 bits data) and saves it as tiff file 
> somewhere in memory
> -if there is, how can i use it?
> -if not can i write the code for that myself? how?

I'm sorry I can't tell you directly whether this is possible or not, or the name of the function(s) for it, but I would suggest you check this page http://www-128.ibm.com/developerworks/linux/library/l-libtiff/ for some info that looks related to your query.  Otherwise, you might want to briefly look over the headers to see if some of the function names imply a possibility of accomplishing your goal.

If you're going to write the code yourself, it's not that difficult, really, for something very particular.  Start with the TIFF 6.0 spec ( http://www.remotesensing.org/libtiff/document.html ), and work your way out from there.

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
