Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav008.isp.belgacom.be (inav008.isp.belgacom.be [195.238.2.78])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id iAG55OpW025075
        for <joris.at.lebbeke@skynet.be>; Tue, 16 Nov 2004 06:05:24 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas005.isp.belgacom.be (localhost [127.0.0.1])
        by inav008.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id iAG55EQS024656
        for <joris.at.lebbeke@skynet.be>; Tue, 16 Nov 2004 06:05:14 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by inas005.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id iAG556N6015842
        for <joris.at.lebbeke@skynet.be>; Tue, 16 Nov 2004 06:05:06 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id iAG54wDk003446
        for <joris.at.lebbeke@skynet.be>; Tue, 16 Nov 2004 06:05:00 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 4742547BBFA; Tue, 16 Nov 2004 00:04:44 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from imss01 (unknown [203.197.160.44])
	by xserve.flids.com (Postfix) with ESMTP id E3E8147BBEA
	for <tiff@remotesensing.org>; Tue, 16 Nov 2004 00:04:40 -0500 (EST)
Received: from mailsrvnt01.ssdi.sharp.co.in ([172.29.240.7]) by imss01 with 
	InterScan Messaging Security Suite; Tue, 16 Nov 2004 10:40:56 +0530
Received: by mailsrvnt01.sharp.co.in with Internet Mail Service 
	(5.5.2657.72)id <4HF0WCLN>; Tue, 16 Nov 2004 10:40:33 +0530
Message-ID: <9753A88725D7D3119BE0009027CC6CA20427C7A0@mailsrvnt01.sharp.co.i n>
From: Meenatchi Raja Rajeshwari <rrmeenatchi@ssdi.sharp.co.in>
To: "'tiff@remotesensing.org'" <tiff@remotesensing.org>
Date: Tue, 16 Nov 2004 10:40:29 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2657.72)
Content-Type: text/plain;
	charset=ISO-8859-1
X-imss-version: 2.7
X-imss-result: Passed
X-imss-scores: Clean:99.90000 C:21 M:2 S:5 R:5
X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000)
Subject: [Tiff] regarding tiff to bitmap
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: bc3f30a49e27b6d865d16d035eb5718e


Hi all,
i want to convert a tiff file in to a bitmap file.
can anybody help me regarding  that.
i have some problem with the following  code

	TIFF *inpimage=NULL;
	inpimage=TIFFOpen("D:\\output_files\\appurgb280multi13x18.tiff",
"w");
	uint32 imwidth=800;
	int imheight=800;
	
//	int h=TIFFGetField(inpimage, TIFFTAG_IMAGEWIDTH, &imwidth);
//	TIFFGetField(inpimage, TIFFTAG_IMAGELENGTH, &imheight);
	tsize_t imlinesize_bytes=TIFFScanlineSize(inpimage);
	uint8 *read_buff=(uint8 *)malloc(imlinesize_bytes*imheight);
	BYTE *bits=read_buff;
	for(int row=1;row<=imheight;row++)
	{
		if (TIFFReadScanline(inpimage,bits, row, 0)==-1)
			AfxMessageBox("Complete or error",MB_OK,NULL);
		bits=read_buff+row*imwidth;

	}

The return value of  TIFFScanlineSize is wrong.

Regards,
aparna

This email message and all attachments are confidential and intended only
for the use of an individual or entity named above and may contain
information that is privileged, confidential or exempt from disclosure under
applicable law.If you are not the intended recipient,you are notified that
any is dissemination ,distribution or copying of this email is strictly
prohibited.
If you have received this email in error, please notify us immediately by
return email or to administrator@ssdi.sharp.co.in and destroy the original
message.
Opinions,conclusions,and other information in this message that do not
relate to the official business of Sharp Software Development India Pvt Ltd
shall be understood to be neither given nor endorsed by
Sharp Software Development India Pvt Ltd.
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
