Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery011.isp.belgacom.be (Postfix) with ESMTP id A8EF2598045
	for <joris.at.lebbeke@skynet.be>; Thu, 14 Feb 2008 20:33:37 +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; 14 Feb 2008 20:33:36 +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 m1C2VSbt021335;
	Mon, 11 Feb 2008 21:31:50 -0500
Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m1C2VNbN021331
	for <tiff@lists.maptools.org>; Mon, 11 Feb 2008 21:31:24 -0500
Received: by rv-out-0910.google.com with SMTP id c27so3597654rvf.9
	for <tiff@lists.maptools.org>; Mon, 11 Feb 2008 18:31:22 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	bh=xu6/KR3zCCamvCDnZtiyqgNBBS2dZsa0Ky1i20y2tWA=;
	b=X8pxCbcSm6EtMClK50A784dM7Z8n64eADEZ8cwWD3wYEt6J7tLwQV/PAyEI40ZTSq/dmE8vrYDGi5t5wT5m29MYeH0JmoPZ0y1J1OXnbJBd+MAHRJ0BUNzHkWYVpfoO0IuGjPCaLPMm4wk2Z0UMqs9Lz16E8gp/36s36x03MaBc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
	b=CLbo5GpSuz/k2hD32uljDC4nTdl6Wgs+t/VW0sBNRloXJV6dh4qReXQsGluLgbbMDWAQGek58HpvxXwxTdu6IvKwsTCCjLoCn2VSnbPHTuQ5LV4Of+DRQiIyqGWfcg6RSrJMg5LUieKFaHiGXXbqsUlHwnGG2MIvqNdUQ4AkNyc=
Received: by 10.141.197.8 with SMTP id z8mr530267rvp.157.1202783482268;
	Mon, 11 Feb 2008 18:31:22 -0800 (PST)
Received: by 10.141.185.2 with HTTP; Mon, 11 Feb 2008 18:31:22 -0800 (PST)
Message-ID: <ed62030a0802111831g566d9115q54397a839952684d@mail.gmail.com>
Date: Mon, 11 Feb 2008 21:31:22 -0500
From: "James Sumners" <james.sumners@gmail.com>
To: "Chris Cox" <ccox@adobe.com>
Subject: Re: [Tiff] Re: Help with TIFFWriteScanline()
In-Reply-To: <3B96007137B4CE4E85114278E640DC330131C8C1@namail3.corp.adobe.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <ed62030a0802110752v24461215of3beb1ce6a2484ec@mail.gmail.com>
	<ed62030a0802110833mbb06850q1c31859acb569498@mail.gmail.com>
	<3B96007137B4CE4E85114278E640DC330131C8C1@namail3.corp.adobe.com>
Cc: tiff@lists.maptools.org
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.00002aaa
X-MSP-STORE: Thu, 14 Feb 2008 20:33:37 +0100
Status:   

Indeed I was. I thought I had sent a couple follow ups to the list
where I said I figured that out. Maybe they didn't come through?

On Feb 11, 2008 12:20 PM, Chris Cox <ccox@adobe.com> wrote:
> I think you're confusing SamplesPerPixel with BitsPerSample.
>
>
>
> -----Original Message-----
> From: tiff-bounces@lists.maptools.org on behalf of James Sumners
> Sent: Mon 2/11/2008 8:33 AM
> To: tiff@lists.maptools.org
> Subject: [Tiff] Re: Help with TIFFWriteScanline()
>
> After browsing the mailing list archives I found out about the
> tiffinfo tool. tiffinfo reported that my original image had a
> SamplesPerPixel of 1. For some reason, unbeknownst to me, my program
> is getting a value of 0 for SamplesPerPixel from the original image.
> So I manually set the value to 8, because that is what I understand
> the specification to be (8 or 16 SPP for grayscale/color and 1 SPP for
> bilevel). After changing my manual SPP value from 8 to 1 the copied
> image is written correctly.
>
> This is the first time I've done any graphics programming. So I'm sure
> that I am not understanding something. Would someone please explain
> this situation to me? Would 8 SPP squeeze the image into a smaller
> space? How is 1 SPP producing a grayscale image?


-- 
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/
