Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx10.public.one.com ([10.246.18.30])
	by mail6.local.one.com (Dovecot) with LMTP id slP6OMuPglh2cwEAsyOMew
	for <filtered@awaresystems.be>; Fri, 20 Jan 2017 22:43:30 +0000
X-HalOne-ID: dce429ab-df61-11e6-9c76-246e9615723c
Received: from mail-ot0-f179.google.com (unknown [74.125.82.179])
	by mx10.public.one.com (Halon) with ESMTPS
	id dce429ab-df61-11e6-9c76-246e9615723c;
	Fri, 20 Jan 2017 22:43:30 +0000 (UTC)
Received: by mail-ot0-f179.google.com with SMTP id 65so66002499otq.2
        for <filtered@awaresystems.be>; Fri, 20 Jan 2017 14:43:30 -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
         :from:to:date:message-id:references:mime-version:cc:subject
         :precedence:list-id:list-unsubscribe:list-archive:list-post
         :list-help:list-subscribe:mime-version:sender:errors-to;
        bh=SCPPnyc9RA04mRL4mz3wjZq5hMYgIjsCT9YiXkuLxeU=;
        b=rSZQCyTguXBp7gEettiy+1zG5/PNG7R5qS/Z6uWVyyu4EdGuM1NNsPa5YCNL4SgSdm
         +ZuRSKTQV+/DTtD0pjy4s/YSYKJHxUGBjyu7sHSd8LsfnX/QhJV3WZ0KfU7Sjla1isLX
         Lg+iJ0NFdeEW2k7MaPTWepePckf9B2E8LXbjGTTzc0SKJ41HK9ED6UK0gerlAQT/xswV
         AZ6LpU4MJlrZA72LUAjctIMGpMZb4GxIoxtzCAl3PMfoOQXgMJlw35ISG7GJQu82uOy/
         yWx1wd6pprJUknnwdA6jSjjaraPvw8WmPDjaX4mVABw9HIlM/Wz12N2p+Zj69l8lUEFF
         E1Eg==
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=seznam.cz
X-Gm-Message-State: AIkVDXIl29aWN3jqkN282Rq9n3d1S93vK129GSPhdDAjEB9wK8Fis4CjS+9iTutlnaP+Z8RiDMsIjPOWIQknGCuzKIgDRXg=
X-Received: by 10.157.12.133 with SMTP id b5mr7749829otb.85.1484952208863;
        Fri, 20 Jan 2017 14:43:28 -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.192.135 with SMTP id q129csp242392oif;
        Fri, 20 Jan 2017 14:43:28 -0800 (PST)
X-Received: by 10.28.172.5 with SMTP id v5mr4789081wme.41.1484952207907;
        Fri, 20 Jan 2017 14:43:27 -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 w12si9501239wrc.257.2017.01.20.14.43.27;
        Fri, 20 Jan 2017 14:43:27 -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=seznam.cz
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id A205935C073;
	Fri, 20 Jan 2017 17:42:29 -0500 (EST)
Received: from mxf1.seznam.cz (mxf1.seznam.cz [77.75.78.123])
	by lists.maptools.org (Postfix) with ESMTPS id CEA5A35C06F
	for <tiff@lists.maptools.org>; Fri, 20 Jan 2017 17:33:43 -0500 (EST)
Received: from email.seznam.cz
	by email-smtpc12b.ko.seznam.cz (email-smtpc12b.ko.seznam.cz
	[10.53.14.105]) id 009ea3d2269d041a008f553c;
	Fri, 20 Jan 2017 23:33:42 +0100 (CET)
Received: from unknown ([::ffff:83.208.231.197])
	by email.seznam.cz (szn-ebox-4.5.207) with HTTP;
	Fri, 20 Jan 2017 23:33:37 +0100 (CET)
From: "Mickey Rose" <mickey.rose@seznam.cz>
To: "Vincent Torri" <vincent.torri@gmail.com>
Date: Fri, 20 Jan 2017 23:33:37 +0100 (CET)
Message-Id: <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>
Mime-Version: 1.0 (szn-mime-2.0.12)
X-Mailer: szn-ebox-4.5.207
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: multipart/mixed; boundary="===============0739609012=="
Mime-version: 1.0
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

--===============0739609012==
Content-Type: multipart/alternative;
	boundary="=_0b12312d42ba476d03503f84=e62fdadd-8217-53ba-8078-bbf4592e6490_="

--=_0b12312d42ba476d03503f84=e62fdadd-8217-53ba-8078-bbf4592e6490_=
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

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

<html><body><br><p>Od: Vincent Torri &lt;vincent.torri@gmail.com&gt;<br></=
p><br><blockquote>On Fri, Jan 20, 2017 at 8:51 PM, Olivier Paquet=0A=
<br>&lt;olivier.paquet@gmail.com&gt; wrote:=0A=
<br>&gt; 2017-01-20 14:06 GMT-05:00 Vincent Torri &lt;vincent.torri@gmail.=
com&gt;:=0A=
<br>&gt;&gt;=0A=
<br>&gt;&gt; so the result is like I display the lines in the reverse orde=
r (from=0A=
<br>&gt;&gt; bottom to top, and not from top to bottom)=0A=
<br>&gt;=0A=
<br>&gt;=0A=
<br>&gt; man TIFFRGBAImageGet says:=0A=
<br>&gt;=0A=
<br>&gt; "(Note  that  the  raster  is assume to be organized such that th=
e pixel at=0A=
<br>&gt; location (x,y) is raster[y*width+x]; with the raster origin in th=
e=0A=
<br>&gt; lower-left hand corner.)"=0A=
<br>&gt;=0A=
<br>&gt; So TIFFRGBAImageGet will always reorient the image and it does it=
 the=0A=
<br>&gt; "windows bitmap" way.=0A=
<br>=0A=
<br>thank you, i know why :)=0A=
<br>=0A=
<br>now, how can I use libtiff to display it correctly ? i've tried=0A=
<br>several things, without success=0A=
<br>=0A=
<br>Vincent Torri=0A=
<br></blockquote><p><br></p><p><br></p><p>After you intiialize the TIFFRGB=
AImage structure with TIFFRGBAImageBegin,<br>set img-&gt;req_orientation =
=3D ORIENTATION_TOPLEFT (it defaults to BOTLEFT).<br>TIFFRGBAImageGet will=
 then output the top row first.<br></p><p><br></p></body></html>=
--=_0b12312d42ba476d03503f84=e62fdadd-8217-53ba-8078-bbf4592e6490_=--


--===============0739609012==
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/
--===============0739609012==--
