From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92699 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Rotating an image Date: Thu, 15 Oct 2015 17:27:58 +0200 Message-ID: <561FC5FE.7070806@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0709926298==" X-Trace: ger.gmane.org 1444922974 29792 80.91.229.3 (15 Oct 2015 15:29:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 15:29:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 15 17:29:22 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmkT2-0001IJ-JF for gctc-ntg-context-518@m.gmane.org; Thu, 15 Oct 2015 17:29:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A4A2210213 for ; Thu, 15 Oct 2015 17:29:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Hl-NravSPpDn for ; Thu, 15 Oct 2015 17:29:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1C41510232 for ; Thu, 15 Oct 2015 17:28:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B29F101F7 for ; Thu, 15 Oct 2015 17:28:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id okiPH1laqsr9 for ; Thu, 15 Oct 2015 17:28:15 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 1ACC5101E8 for ; Thu, 15 Oct 2015 17:28:15 +0200 (CEST) Original-Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) by filter4-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9FFS8im013491 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2015 17:28:14 +0200 Original-Received: by lfeh64 with SMTP id h64so31845038lfe.3 for ; Thu, 15 Oct 2015 08:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=QI6H9/ZUvyBfXbj8OhyDwcp7YBzxua1lXCNGdcj3Bmk=; b=PNL08Ih21qIRYokyx1E/7V0HcGh8/fUrD1GbE/T5sIDcwAwVnpO3Ix6Q54Sn3KNEaZ 1ykO5N/zDwxmOKXg70C2wvvOFJqgvG1m3Q9tDhGIHMHGuv02fEQaTLlzvd3gRLG07sTW Yvka2ZvMIocxym2OutT+RZGSvVax5wjD5vxW+fGPO8tv3ynOAY4YeLpaGw/L7YcePnxK ugYQF4f4+eT5UUdm/3+vZ4+LSZWRbAP8mCvvivbfS6MmN+tFcM2lUSiC5rOlq+bt9tin ptLmmkZIr052O+XTma5xHE5P763h4ONeqAPQBUJjISWdiRsl3D+fk1fEjMOpWoeSibET qy8g== X-Received: by 10.180.211.47 with SMTP id mz15mr11069176wic.93.1444922882607; Thu, 15 Oct 2015 08:28:02 -0700 (PDT) Original-Received: from keima.localdomain (x2f262bc.dyn.telefonica.de. [2.242.98.188]) by smtp.googlemail.com with ESMTPSA id g5sm24019744wix.13.2015.10.15.08.28.00 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Oct 2015 08:28:01 -0700 (PDT) User-Agent: Postbox 4.0.5 (Macintosh/20150923) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c07::22d; country=FI; region=South Karelia; city=Lappeenranta; latitude=61.0667; longitude=28.1833; http://maps.google.com/maps?q=61.0667,28.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VPtrs8ed - a8d83fd41187 - 20151015 (trained as not-spam) Received-SPF: pass (filter4-til.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:4010:c07::22d as permitted sender) receiver=filter4-til.mf.surf.net; client-ip=2a00:1450:4010:c07::22d; envelope-from=; helo=mail-lf0-x22d.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92699 Archived-At: This is a multi-part message in MIME format. --===============0709926298== Content-Type: multipart/alternative; boundary="------------030003090504060109050508" This is a multi-part message in MIME format. --------------030003090504060109050508 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Fabrice Couvreur > 12. Oktober 2015 um 20:58 > A small question not directly related context. > I would like to turn my image 15 degrees. > Thanks, > Fabrice > > picture pic ; > pic := currentpicture ; > u := 0.5cm ; > z1 = origin ; > z2 = (9u, 0) ; > path p ; > p := fullcircle scaled 14u ; > path q ; > q := p shifted (9u,0) ; > pair A ; > A := p intersectionpoint q ; > path a ; > a := z1 -- z2 ; > path b ; > b := z1 -- A ; > path c ; > c := z2 -- A ; > draw a ; > draw b ; > draw c ; > pair I ; > pair J ; > I := point 0.6 of b ; > J := point 0.6 of c ; > draw I -- J ; > pair L ; > L := point 0.8 of b ; > label.top("A", A) ; > label.lrt("C", z2) ; > label.llft("B", origin) ; > label.ulft("I", I) ; > label.urt("J", J) ; > label.ulft("$x$", L) ; > draw pic rotated 15 ; > \startMPpage picture pic ; u := 0.5cm ; z1 = origin ; z2 = (9u, 0) ; path p ; p := fullcircle scaled 14u ; path q ; q := p shifted (9u,0) ; pair A ; A := p intersectionpoint q ; path a ; a := z1 -- z2 ; path b ; b := z1 -- A ; path c ; c := z2 -- A ; draw a ; draw b ; draw c ; pair I ; pair J ; I := point 0.6 of b ; J := point 0.6 of c ; draw I -- J ; pair L ; L := point 0.8 of b ; label.top("A", A) ; label.lrt("C", z2) ; label.llft("B", origin) ; label.ulft("I", I) ; label.urt("J", J) ; label.ulft("$x$", L) ; pic := currentpicture ; currentpicture := nullpicture; draw pic rotated 15 ; \stopMPpage You can also rotate the image when you place it in your document with \rotate[rotation=15]{...}. Wolfgang --------------030003090504060109050508 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
12. Oktober 2015 um 20:58
A small question not directly related context.
I would like to turn my image 15 degrees.
Thanks,
Fabrice

picture pic ;
pic := currentpicture ;
u := 0.5cm ;
z1 = origin ;
z2 = (9u, 0) ;
path p ;
p := fullcircle scaled 14u ;
path q ;
q := p shifted (9u,0) ;
pair A ;
A := p intersectionpoint q ;
path a ;
a := z1 -- z2 ;
path b ;
b := z1 -- A ;
path c ;
c := z2 -- A ;
draw a ;
draw b ;
draw c ;
pair I ;
pair J ;
I := point 0.6 of b ;
J := point 0.6 of c ;
draw I -- J ;
pair L ;
L := point 0.8 of b ;
label.top("A", A) ;
label.lrt("C", z2) ;
label.llft("B", origin) ;
label.ulft("I", I) ;
label.urt("J", J) ;
label.ulft("$x$", L) ;
draw pic rotated 15 ;


\startMPpage
picture pic ;
u := 0.5cm ;
z1 = origin ;
z2 = (9u, 0) ;
path p ;
p := fullcircle scaled 14u ;
path q ;
q := p shifted (9u,0) ;
pair A ;
A := p intersectionpoint q ;
path a ;
a := z1 -- z2 ;
path b ;
b := z1 -- A ;
path c ;
c := z2 -- A ;
draw a ;
draw b ;
draw c ;
pair I ;
pair J ;
I := point 0.6 of b ;
J := point 0.6 of c ;
draw I -- J ;
pair L ;
L := point 0.8 of b ;
label.top("A", A) ;
label.lrt("C", z2) ;
label.llft("B", origin) ;
label.ulft("I", I) ;
label.urt("J", J) ;
label.ulft("$x$", L) ;
pic := currentpicture ;
currentpicture := nullpicture;
draw pic rotated 15 ;
\stopMPpage

You can also rotate the image when you place it in your document with \rotate[rotation=15]{...}.

Wolfgang
--------------030003090504060109050508-- --===============0709926298== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0709926298==--