Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas020.isp.belgacom.be (localhost [127.0.0.1])
        by inav004.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k0GFh33Y026541
        for <joris.at.lebbeke@skynet.be>; Mon, 16 Jan 2006 16:43:03 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx006.isp.belgacom.be (inmx006.isp.belgacom.be [195.238.4.106])
        by inas020.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k0GFgrGh003149
        for <joris.at.lebbeke@skynet.be>; Mon, 16 Jan 2006 16:42:54 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k0GFgkG7006570
        for <joris.at.lebbeke@skynet.be>; Mon, 16 Jan 2006 16:42:47 +0100
        (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 k0GFXhwM002535;
	Mon, 16 Jan 2006 10:33:55 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k0GFXe4j002532
	for <tiff@lists.maptools.org>; Mon, 16 Jan 2006 10:33:40 -0500
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	k0GFXcus017172; Mon, 16 Jan 2006 09:33:38 -0600 (CST)
Date: Mon, 16 Jan 2006 09:33:38 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Patryk Palasz <Patryk.Palasz@rsdtechnik.de>
Subject: Re: [Tiff] TiffReadEncodedStrip - problem in Delphi
In-Reply-To: <004701c61aaf$00756390$320aa8c0@PatrykMobile>
Message-ID: <Pine.SOC.4.60.0601160929410.4804@blade.simplesystems.org>
References: <004701c61aaf$00756390$320aa8c0@PatrykMobile>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: tiff@lists.maptools.org
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001171
X-MSP-STORE: Mon, 16 Jan 2006 16:43:12 +0100
Status:   

On Mon, 16 Jan 2006, Patryk Palasz wrote:
>
> But the second one makes me a lot of problems - because I CAN NOT display it! 
> I mean - there are some strange stripes and it doesn't look like it should - 
> simply unrecognizable! Here is a small part of code I use - works fine with 
> first picture.

Why are you handling the fill order in your own code?  I believe that 
libtiff already handles that for you.  So you are likely scrambling 
the data yourself.  Also, what does ChangeLinesOrder() do?

Bob

>
> BitmapBuff := FBitmap.ScanLine[ FImgHeight - 1];
> for i := FStripsCnt - 1 downto 0 do
> begin
>   read := TiffReadEncodedStrip( FTiffFile, i, Buff, -1);
>   if read <> -1 then
>   begin
>     if FFillOrder <> FILLORDER_MSB2LSB then
>       ChangeBitsOrder( Buff, read);
>     ChangeLinesOrder( Buff, BitmapBuff, read);
>     Inc( BitmapBuff, read);
>   end;
> end;
>
> The Bitmap's PixelFormat is of course pf1bit.
>
> Thanks in advance - Patryk Palasz.
>
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
>

======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
