Status: Read
Received: from [207.113.13.68] by phillip.cerious.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Mon, 18 Jan 1999 12:00:24 -0500
Received: from localhost (bin@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) with SMTP id LAA02822;
	Mon, 18 Jan 1999 11:25:16 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Mon, 18 Jan 1999 11:19:53 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) id LAA02788
	for tiff-outgoing; Mon, 18 Jan 1999 11:19:52 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from ziggy.wwnet.net (ziggy.wwnet.net [209.142.193.4])
	by gate7.olympiakos.com (8.8.7/8.8.7) with ESMTP id LAA02785
	for <tiff@olympiakos.com>; Mon, 18 Jan 1999 11:19:49 -0500
Received: from Sim ([209.142.208.146])
	by ziggy.wwnet.net (8.8.7/8.8.7) with SMTP id MAA26129;
	Mon, 18 Jan 1999 12:16:22 -0500
Received: by localhost with Microsoft MAPI; Mon, 18 Jan 1999 11:17:47 -0500
Message-ID: <01BE42D4.2D3DAFF0.szacks@imprsv.com>
From: Sim Zacks <szacks@imprsv.com>
To: "'Nick Westwood'" <nick@kabalagogo.ndirect.co.uk>,
        TIFF List Server
	 <tiff@olympiakos.com>
Subject: RE: Opening a tiff image using VC++
Date: Mon, 18 Jan 1999 11:17:46 -0500
X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@olympiakos.com

I turned the library into a DLL and am writing an imaging toolkit in 
windows. The method I use is I read the bits into memory (using either 
readEncodedStrip or ReadScanline) and fill out a BitmapInfoHeader gotten by 
calling the Getfield function for all the tags I need. The you can either 
create a DIB by calling CreateDIBSection which gives you an HBitmap or call 
StretchDIBits and put it directly on the screen. I'm using Delphi, but I 
can send you an example if you want. There are some bugs in StretchDIBits 
but it is very easy to use, and you can get around most of them.

Sim

-----Original Message-----
From:	Nick Westwood [SMTP:nick@kabalagogo.ndirect.co.uk]
Sent:	Friday, January 16, 1998 9:57 AM
To:	TIFF List Server
Subject:	Re: Opening a tiff image using VC++

I'm using VC++ 4 (soon to switch to VC++ 5) and successfully compiled
the library into  a static lib and a dll. I found a C++ library on the
net called PaintLib and took their modifications and applied them to
TIFFLIB. Seems to work fine. I've used it to write some tools to append
single tif files into multi-page ones and split them out again.
I need to write a viewer now though and I'm having lots of problems
displaying a tif file under Win95/NT. I've tried to use the tif2dib
contribution supplied with TIFFLIB and though it compiles fine into the
library and seems to return a valid handle to a DIB, I can't get it to
do anything but display a black rectangle. If anyone on the list has had
any success with displaying tif files under Windows I'd love to hear
from them - this is driving me nuts and I'm sure I cant be the only one
who wants to do this. If anyone has any sample code or could give me any
helpful pointers I would be very, very, very grateful.
Regards
Nick Westwood

