Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas007.isp.belgacom.be (localhost [127.0.0.1])
        by inav027.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k8IBeLXA022285
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Sep 2006 13:40:21 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx014.isp.belgacom.be (inmx014.isp.belgacom.be [195.238.4.217])
        by inas007.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k8IBeDBQ003510
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Sep 2006 13:40:13 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx014.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k8IBeCgV028837
        for <joris.at.lebbeke@skynet.be>; Mon, 18 Sep 2006 13:40:13 +0200
        (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 k8IBNFAG021473;
	Mon, 18 Sep 2006 07:23:58 -0400
Received: from zynlfw01.zylab.com (mx.zylab.com [194.178.9.130])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k8IBNDqm021470
	for <tiff@lists.maptools.org>; Mon, 18 Sep 2006 07:23:13 -0400
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id 64133203;
	Mon, 18 Sep 2006 12:55:51 +0200 (CEST)
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] is there alpha component present in Grayscale
	orPalettecolor image
Date: Mon, 18 Sep 2006 13:23:08 +0200
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920D020CA5CB@zynlms01.ZyLAB.WAN>
In-Reply-To: <11848b2f0609160258if2dc9abs7c90404f51577002@mail.gmail.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] is there alpha component present in Grayscale
	orPalettecolor image
Thread-Index: AcbZdqs09H7Yja3cSJ6p8foPzJgi2wBmM+UA
From: "Gerben Vos" <Gerben@zylab.com>
To: <tiff@lists.maptools.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k8IBNDqm021470
Cc: 
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.00001a85
X-MSP-STORE: Mon, 18 Sep 2006 13:40:26 +0200
Status:   

Anurag Singh wrote:

> then how will i get extra data plane in palette images. I want all
> image data so please let me know how can i get it.

Please read the libtiff manual, then ask a more specific question.

> So what should i understand??  i am getting that grayscale and palette
> both can have extra component. am i rt?

Yes, you can set the ExtraSamples tag to 1 and just add the extra sample
for each pixel to the image data. The first sample for the pixel would
be either the greyscale value or the index into the palette, the second
would be the alpha value. Please note that it is defined as associated
alpha (read the TIFF spec for explanation, or for example the PNG spec,
which explains why they didn't use it), which is hard to use, or even
just useless when used with a palette.

					Gerben.

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