Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery007.isp.belgacom.be (Postfix) with ESMTP id A8A4745C003
	for <joris.at.lebbeke@skynet.be>; Mon, 11 Feb 2008 17:13:05 +0100 (CET)
Authentication-Results: in.mx.skynet.be; dkim=permerror (body hash did not verify [final] [TEST]) header.i=@gmail.com
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 11 Feb 2008 17:13:04 +0100
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 m1BFqHTA010332;
	Mon, 11 Feb 2008 10:53:11 -0500
Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m1BFqCT1010329
	for <tiff@lists.maptools.org>; Mon, 11 Feb 2008 10:52:12 -0500
Received: by rv-out-0910.google.com with SMTP id c27so3481932rvf.9
	for <tiff@lists.maptools.org>; Mon, 11 Feb 2008 07:52:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
	bh=EVlfNcoBaTDXOfMgit2mF0BWncelpK2kYt/qukqyyLc=;
	b=VB1fdnoObAi/RlbjfqhmHh89xb4kPkMwfkm+Y19FHL6vo1EFlN27NlTCO/ejvZOZnqgdV9DPvIMMjSYS5kMo+BiuJnIM1mxtY3dhzJnzCSyJ0/HGmU6zftifA4lHDQWEz0F/5hvsRncX7CHfDFMN+kqWd0hBDxw62Mckk/9K/Ac=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition;
	b=T9jj40c7uF3nR5reoBFDoW6o0Ine2AUXju9bRAFGEr2LMXd2LSoTzNpMI5fVpV3GbivvVRsu2Bwd1OgcoIplsOXKzMbk/vDc6pWvagDRLbKO50RjtH/FOLILzLEqr47E1MizA61BHTCj7W8eVgjbRKXJsKhU1NiwzoGxrCiGPsU=
Received: by 10.140.174.18 with SMTP id w18mr71028rve.227.1202745130474;
	Mon, 11 Feb 2008 07:52:10 -0800 (PST)
Received: by 10.141.185.2 with HTTP; Mon, 11 Feb 2008 07:52:10 -0800 (PST)
Message-ID: <ed62030a0802110752v24461215of3beb1ce6a2484ec@mail.gmail.com>
Date: Mon, 11 Feb 2008 10:52:10 -0500
From: "James Sumners" <james.sumners@gmail.com>
To: tiff@lists.maptools.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Subject: [Tiff] Help with TIFFWriteScanline()
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.00002a86
X-MSP-STORE: Mon, 11 Feb 2008 17:13:05 +0100
Status:   

I've written a program[1] that reads a grayscale image into memory and
writes it to another file. The problem is that the new image is
multiple copies of the original image in the same pixel space. It's a
bit difficult to describe. Included in the zip is "fractal_gs.tiff",
the original image, and "fractal_gs_2.tiff", the copy.

If I try to write the new image with TIFFWriteRawStrip() I get append
errors. Using TIFFWriteScanline() I get an image, just not the one I
expect. What am I doing wrong?

[1] -- http://student.claytonstate.net/~jsumners/files/tiff_copy.zip

-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
