Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (ak4719.spb.edu [127.0.0.1])
	by ak4719.spb.edu (8.12.1/8.12.1/Debian -5) with ESMTP id h6E9nxt1001453
	for <dron@localhost>; Mon, 14 Jul 2003 13:51:37 +0400
Received: from pop.in02.prd.whowhere.com [209.202.220.196]
	by localhost with POP3 (fetchmail-6.2.0)
	for dron@localhost (single-drop); Mon, 14 Jul 2003 13:51:37 +0400 (MSD)
Received: from gate7.olympiakos.com ([64.32.199.150]) by whowhere.com; Fri, 11 Jul 2003 16:23:48 -0000
X-Envelope-Sender: owner-tiff@olympiakos.com
Received: by gate7.olympiakos.com (Postfix, from userid 65534)
	id 8CEE3110E7; Fri, 11 Jul 2003 12:23:36 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
	by gate7.olympiakos.com (Postfix) with SMTP
	id 6AD90110E6; Fri, 11 Jul 2003 12:23:36 -0400 (EDT)
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Fri, 11 Jul 2003 12:23:15 -0400
Delivered-To: tiff-outgoing@gate7.olympiakos.com
Received: by gate7.olympiakos.com (Postfix, from userid 16)
	id 9486E110C8; Fri, 11 Jul 2003 12:23:15 -0400 (EDT)
Delivered-To: tiff@olympiakos.com
Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.5.31])
	by gate7.olympiakos.com (Postfix) with ESMTP id C31DC110BE
	for <tiff@olympiakos.com>; Fri, 11 Jul 2003 12:23:09 -0400 (EDT)
Received: from asv19.srv.hcvlny.cv.net
 (asv19.srv.hcvlny.cv.net [167.206.5.173]) by mta5.srv.hcvlny.cv.net
 (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003))
 with ESMTP id <0HHV003F2C6KU5@mta5.srv.hcvlny.cv.net> for tiff@olympiakos.com;
 Fri, 11 Jul 2003 12:23:09 -0400 (EDT)
Received: from inversemedia.com
 (ool-182da09d.dyn.optonline.net [24.45.160.157])	by asv19.srv.hcvlny.cv.net
 (8.12.9/8.12.9) with ESMTP id h6BGM4jJ025246; Fri,
 11 Jul 2003 12:22:05 -0400 (EDT)
Date: Fri, 11 Jul 2003 12:22:58 -0700
From: cthomas <cthomas@inversemedia.com>
Subject: grey scale conversion
To: tiff@olympiakos.com, jb <jb@inversemedia.com>
Message-id: <3F0F0E92.3050308@inversemedia.com>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT
X-Accept-Language: en-us, en
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.0.2) Gecko/20030208
 Netscape/7.02
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 1190
Lines: 39

Hello all,

Newbie questions here, thanks for your patience.

Setup:
----------
Windows/VS6
I'm using tifflib to open G4fax images (decoding each scanline using 
TIFFReadScanline)
Then I'm memcopying each decoded scanline output from TIFFReadScanline 
and appending to a large 1 dimensional buffer.
Then I'm calling createbitmap and pointing that to my large buffer to 
display on screen.

Problem:
-----------
1) Above works but is much slower than the Kodak/Wang  "Imaging" program 
found on Windows.
Any ideas how they do it?
Any faster calls to decode the entire image?
Any faster calls to display the image?
Can anyone point me to some sample C/C++ code that BLT's  to screen?

2)  When I go to make proxies (scaling of the image) I'd like the option 
of scaling in greyscale.
(Kodak/Wang Imaging does this almost instantly)
How can I do this on my large uncompressed buffer of B&W 1 bit data?
Is there a tifflib call that will perform greyscale scaling?



Thanks very much for your time.

Chris Thomas
cthomas@inversemedia.com


To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

