Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx7.public.one.com ([10.246.18.27])
	by mail6.local.one.com (Dovecot) with LMTP id c8J2Mngyi1gF8gAAsyOMew
	for <filtered@awaresystems.be>; Fri, 27 Jan 2017 12:50:46 +0000
X-HalOne-ID: 379ce3c5-e48f-11e6-b6c6-549f350a6292
Received: from mail-ot0-f172.google.com (unknown [74.125.82.172])
	by mx7.public.one.com (Halon) with ESMTPS
	id 379ce3c5-e48f-11e6-b6c6-549f350a6292;
	Fri, 27 Jan 2017 12:50:45 +0000 (UTC)
Received: by mail-ot0-f172.google.com with SMTP id 32so38021718oth.3
        for <filtered@awaresystems.be>; Fri, 27 Jan 2017 04:50:45 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :mime-version:in-reply-to:references:from:date:message-id:to:cc
         :subject:precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:content-transfer-encoding:sender:errors-to;
        bh=SoU2uqT0JlE0m4PjegGmZvVgsegW1hYUNlNnlJRqVts=;
        b=V+FbohJWavraDpcElOhR+/3NSuDcHdAn43WdpxaDtvSvjvaX7MsoaCFOrIcdGF53Dk
         AI4WwnBmTC9UHfsgYP3m7z1rHNUgO5c2Tm7GVtOJaipbkYqia8sMIkkT67B7O2KdCMP/
         P91iOh0CMG760aNRe2s+7IyoHzTpB5wzpDnhIE7YrVxIVXHhN8O+o6GLB/NXtG8OcA/M
         Ts6q4weod6FdOojTzUiuFc4q5LqKyDjHTHuv1sw0MFuDlZyNzH9lGU7fRjY7Dtb1BKm+
         3Ed/MndTG8Z93FVSfCn3ns6QGPZ/GfZ3k3p+0yyWQXXCWytNQo94qi8Ov06ySqhjB3zU
         878A==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
X-Gm-Message-State: AIkVDXLcsDEod0Efjs9pmG66rASW9wMrcgwSCqw5mCfcEuCkTQCvox/72yyGEs8a6e6kRCvblLfBO5gGlRL1P8FgaS1VlkQ=
X-Received: by 10.157.56.237 with SMTP id k42mr3636575ote.204.1485521444050;
        Fri, 27 Jan 2017 04:50:44 -0800 (PST)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.202.175.141 with SMTP id y135csp241153oie;
        Fri, 27 Jan 2017 04:50:42 -0800 (PST)
X-Received: by 10.28.28.143 with SMTP id c137mr2850313wmc.115.1485521442627;
        Fri, 27 Jan 2017 04:50:42 -0800 (PST)
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id b40si5867601wrb.87.2017.01.27.04.50.41;
        Fri, 27 Jan 2017 04:50:42 -0800 (PST)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org;
       dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id B06D735C02B;
	Fri, 27 Jan 2017 07:49:40 -0500 (EST)
Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41])
	by lists.maptools.org (Postfix) with ESMTPS id F05B335C028
	for <tiff@lists.maptools.org>; Fri, 27 Jan 2017 07:49:28 -0500 (EST)
Received: by mail-wm0-f41.google.com with SMTP id r126so115623211wmr.0
	for <tiff@lists.maptools.org>; Fri, 27 Jan 2017 04:49:28 -0800 (PST)
X-Received: by 10.28.47.15 with SMTP id v15mr2892968wmv.67.1485521368336; Fri,
	27 Jan 2017 04:49:28 -0800 (PST)
MIME-Version: 1.0
Received: by 10.28.174.21 with HTTP; Fri, 27 Jan 2017 04:49:27 -0800 (PST)
In-Reply-To: <888.4RJR.77{zZXXragG.1OWf11@seznam.cz>
References: <CAAcuQeYs3_dD1KPa1GN45w3-ecTxMwj-1G_FSnHoSRf0up9zkg@mail.gmail.com>
	<CAMq1adrckAVqdVvbA9ZDOfTzDyLYw_UvR=P6d+XEMv3n=Phdrg@mail.gmail.com>
	<CAMq1adreAoL94WpzuQ3bk8R=KAA6f5wOR=CUWgxT6=HHOKgaAQ@mail.gmail.com>
	<CAMq1adpiVr5v8t=u83p19Vpw_A9At7YEPc1+cLBr4Uec2g6NYA@mail.gmail.com>
	<888.4RJR.77{zZXXragG.1OWf11@seznam.cz>
From: Vincent Torri <vincent.torri@gmail.com>
Date: Fri, 27 Jan 2017 13:49:27 +0100
Message-ID: <CAMq1adp2Q7-9VrKNvM+Ofx=7rNwtuVEroJhLFqOcMovZpMiRmw@mail.gmail.com>
To: Mickey Rose <mickey.rose@seznam.cz>
Cc: TIFF mailing list <tiff@lists.maptools.org>
Subject: Re: [Tiff] Fwd: TIFF image displayed upside down
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Hello

On Fri, Jan 20, 2017 at 11:33 PM, Mickey Rose <mickey.rose@seznam.cz> wrote:
>
> Od: Vincent Torri <vincent.torri@gmail.com>
>
>
> On Fri, Jan 20, 2017 at 8:51 PM, Olivier Paquet
> <olivier.paquet@gmail.com> wrote:
>> 2017-01-20 14:06 GMT-05:00 Vincent Torri <vincent.torri@gmail.com>:
>>>
>>> so the result is like I display the lines in the reverse order (from
>>> bottom to top, and not from top to bottom)
>>
>>
>> man TIFFRGBAImageGet says:
>>
>> "(Note that the raster is assume to be organized such that the pixel at
>> location (x,y) is raster[y*width+x]; with the raster origin in the
>> lower-left hand corner.)"
>>
>> So TIFFRGBAImageGet will always reorient the image and it does it the
>> "windows bitmap" way.
>
> thank you, i know why :)
>
> now, how can I use libtiff to display it correctly ? i've tried
> several things, without success
>
> Vincent Torri
>
>
>
> After you intiialize the TIFFRGBAImage structure with TIFFRGBAImageBegin,
> set img->req_orientation = ORIENTATION_TOPLEFT (it defaults to BOTLEFT).
> TIFFRGBAImageGet will then output the top row first.

it works perfectly. thank you

Vincent Torri
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
