Status: Read
Received: from phillip.thumbsplus.com by phillip.thumbsplus.com (NTMail 3.02.11) with ESMTP id pcrews for <pcrews@cerious.com>; Tue, 3 Jun 1997 00:39:34 -0400
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (950413.SGI.8.6.12/970507) via ESMTP id VAA28120; Mon, 2 Jun 1997 21:33:34 -0700
	env-from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo@localhost) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) id TAA22626 for tiff-list; Mon, 2 Jun 1997 19:37:05 -0700
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) via ESMTP id TAA22605 for <tiff-relay@relay.engr.sgi.com>; Mon, 2 Jun 1997 19:37:03 -0700
Received: from linux.agsm.ucla.edu (linux.anderson.ucla.edu [164.67.164.179]) by sgi.sgi.com (950413.SGI.8.6.12/970507) via ESMTP id TAA26025
	for <tiff@sgi.com>; Mon, 2 Jun 1997 19:37:01 -0700
	env-from (ivo.welch@anderson.ucla.edu)
Received: from linux.agsm.ucla.edu (localhost [127.0.0.1])
	by linux.agsm.ucla.edu (8.8.5/8.8.5) with SMTP id TAA10811;
	Mon, 2 Jun 1997 19:36:42 -0700
Message-ID: <3393833A.4643497C@anderson.ucla.edu>
Date: Mon, 02 Jun 1997 19:36:42 -0700
From: Ivo Welch <ivo.welch@anderson.ucla.edu>
X-Mailer: Mozilla 3.01Gold (X11; I; Linux 2.0.30 i686)
MIME-Version: 1.0
To: sam@relay.engr.SGI.COM, tiff@sgi.com
Subject: Write Raster Image --- libtiff
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@fddi-sgi.engr.sgi.com
Precedence: bulk

I just joined the mailing list, because I have a simple, one-time but
urgent need.  I need to read a BW image, apply a transformation, and
write it.  I got libtiff, the docs, etc.  

The html docs nicely tell me how to read the tiff image into a raster
array (which I then plan to manipulate).  But the docs fail to tell me
how to write the transformed raster array to a new TIFF file.  (I do not
much care about details---any standard compression will be fine.) 
Instead, I see tons of details and I cannot seem to succeed in writing
without a core dump.

So, if anyone has written such a function
	TIFFWriteRGBAImage( (uint32 *) raster,
		uint32 w, uint32 h )
(i.e., corresponding to the simple TIFFReadRGBAImage example in the html
doc), it would help me if you would kindly share it with me.

Thanks,

/ivo welch

-- 
Ivo Welch		mailto:ivo.welch@anderson.ucla.edu
	----------------------------
Ivo Welch..............	http://linux.agsm.ucla.edu/
UCLA AGSM Finance......	http://www.agsm.ucla.edu/finance/
Int'l WWW/Email Dirctry	http://linux.agsm.ucla.edu/dir/
--	----------------------------	--
