Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas011.isp.belgacom.be (localhost [127.0.0.1])
        by inav006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j98G4mYR031519
        for <joris.at.lebbeke@skynet.be>; Sat, 8 Oct 2005 18:04:48 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by inas011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j98G4fMW020790
        for <joris.at.lebbeke@skynet.be>; Sat, 8 Oct 2005 18:04:42 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j98G4VYd021519
        for <joris.at.lebbeke@skynet.be>; Sat, 8 Oct 2005 18:04:35 +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 j98FuJ2V001641;
	Sat, 8 Oct 2005 11:57:44 -0400
Received: from mail.gmx.net (pop.gmx.de [213.165.64.20])
	by duke.maptools.org (8.12.11/8.12.10) with SMTP id j98FuG1I001638
	for <tiff@lists.maptools.org>; Sat, 8 Oct 2005 11:56:17 -0400
Message-Id: <200510081556.j98FuG1I001638@duke.maptools.org>
Received: (qmail invoked by alias); 08 Oct 2005 15:56:10 -0000
Received: from ppp9-adsl-203.ath.forthnet.gr (EHLO morpheus) [62.1.232.203]
	by mail.gmx.net (mp035) with SMTP; 08 Oct 2005 17:56:10 +0200
X-Authenticated: #923076
From: <thesilentman@gmx.net>
To: <tiff@lists.maptools.org>
Date: Sat, 8 Oct 2005 18:55:50 +0300
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
Thread-Index: AcXMIMFNaV0szC2pRhWtmCq2l27AkQ==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-Y-GMX-Trusted: 0
Subject: [Tiff] Monochrome tiff to monochrome bitmap. Howto do it?
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>
Content-Type: multipart/mixed; boundary="===============0712395039=="
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00000cde
X-MSP-STORE: Sat, 08 Oct 2005 18:04:55 +0200
Status:   

This is a multi-part message in MIME format.

--===============0712395039==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0496_01C5CC39.F6FE99D0"

This is a multi-part message in MIME format.

------=_NextPart_000_0496_01C5CC39.F6FE99D0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello,

 

I am trying to program a tiff viewer and I have a little problem.

 

Loading a monochrome tiff, it of course loads into the RGBA bitmap (using
TIFFReadRGBAImage), thus using a lot more memory than necessary. 

I would like to be able to specify my bitmap as monochrome and use pf1bit to
load the monochrome tiff bitmap into it, so that I can keep the footprint of
the program as little as possible, 

But I have not found a way to read Monochrome tiff into monochrome bitmap.
Am I missing something? Anyone has done this before? 

Any help in this issue is appreciated.

 

Thank you very much for your help,

Frank Mayer

 

 


------=_NextPart_000_0496_01C5CC39.F6FE99D0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEL link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>I am trying to program a tiff viewer and I =
have a
little problem.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Loading a monochrome tiff, it of course loads =
into
the RGBA bitmap (using TIFFReadRGBAImage), thus using a lot more memory =
than
necessary. <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>I would like to be able to specify my bitmap =
as
monochrome and use pf1bit to load the monochrome tiff bitmap into it, so =
that I
can keep the footprint of the program as little as possible, =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>But I have not found a way to read Monochrome =
tiff
into monochrome bitmap. Am I missing something? Anyone has done this =
before? <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Any help in this issue is =
appreciated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Thank you very much for your =
help,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'>Frank Mayer<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0496_01C5CC39.F6FE99D0--


--===============0712395039==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

