Return-Path: owner-tiff@olympiakos.com
Return-Path: <owner-tiff@olympiakos.com>
Received: from localhost (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.1/8.12.1/Debian -1) with ESMTP id g119pQt6009965
	for <dron@localhost>; Fri, 1 Feb 2002 13:02:56 +0300
Received: from eudoramail.com [209.185.123.45]
	by localhost with POP3 (fetchmail-5.9.0)
	for dron@localhost (single-drop); Fri, 01 Feb 2002 13:02:56 +0300 (MSK)
Received: from gate7.olympiakos.com ([207.176.88.85]) by shared1-mail.whowhere.com; Thu Jan 31 22:28:58 2002
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id BAA13413;
	Fri, 1 Feb 2002 01:25:43 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Fri, 1 Feb 2002 01:23:27 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id BAA13320
	for tiff-outgoing; Fri, 1 Feb 2002 01:23:27 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id BAA13317
	for <tiff@olympiakos.com>; Fri, 1 Feb 2002 01:23:25 -0500
Received: from adsl ([216.103.51.136])
 by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May  7 2001))
 with SMTP id <0GQU00CHICEY6H@mta6.snfc21.pbi.net> for tiff@olympiakos.com;
 Thu, 31 Jan 2002 22:23:22 -0800 (PST)
Date: Thu, 31 Jan 2002 22:13:27 -0800
From: Peter Montgomery <pjmonty@csi.com>
Subject: Re: tiff (libtiff)
To: tiff@olympiakos.com
Message-id: <020a01c1aae8$fec459a0$0201a8c0@pacbell.net>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
Content-type: text/plain; charset=gb2312
Content-transfer-encoding: 7bit
X-Priority: 3
X-MSMail-priority: Normal
References: <F198nVKdplu89emfDp2000143b8@hotmail.com>
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 1232
Lines: 30

Spin Soft,

> hello:
>  I want to use libtiff to create an tiff file from bmp, who can give
me
>  an example, I don't know how to do, thanks very much!!

It seems to be a simple question, but it requires a pretty broad
response.  The TIFF library is designed simply to read and write TIFF
files - anything else is up to you.  Thus, to convert the file you need
to write a lot of code that will be able to read a BMP file, store it in
memory in a format that is compatible with the TIFF library, and then
use the TIFF library to save the image.

All of this is complicated by the fact that there are numerous varieties
of both BMP and TIFF files.  Your BMP code will have to handle 4 bit, 8
bit, and 24 bit BMP images.  In addition, BMP files are stored BGR, so
prior to handing the data to the TIFF library, you'll need to convert it
to RGB.

Basically, there's a lot of work involved in this.  Perhaps someone on
the list has a pre-existing project to do image file conversions, but
it's not something you can just put together quickly as an example.

    Thanks,
    PeterM


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

