From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92700 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Rotating an image Date: Thu, 15 Oct 2015 18:36:56 +0200 Message-ID: References: <561FC5FE.7070806@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0165401848==" X-Trace: ger.gmane.org 1444927090 1870 80.91.229.3 (15 Oct 2015 16:38:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 16:38:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 15 18:37:57 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 1ZmlXP-0005QQ-Mx for gctc-ntg-context-518@m.gmane.org; Thu, 15 Oct 2015 18:37:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F027410218 for ; Thu, 15 Oct 2015 18:37:49 +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 t00Zq6zoZ93M for ; Thu, 15 Oct 2015 18:37:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 244B510232 for ; Thu, 15 Oct 2015 18:37:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71854101F7 for ; Thu, 15 Oct 2015 18:37:05 +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 zjvn7S_um7rU for ; Thu, 15 Oct 2015 18:37:02 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id D236F101E8 for ; Thu, 15 Oct 2015 18:36:59 +0200 (CEST) Original-Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t9FGavFN024873 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2015 18:36:58 +0200 Original-Received: by iofl186 with SMTP id l186so96078414iof.2 for ; Thu, 15 Oct 2015 09:36:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gAgjqhexUtgwNOH4g2B2zlU5PiFokUUVed6pvZDjKi0=; b=w2fo25F9WShZH7qsSHuTYVnM1q+83aaRF/LXvTnCgymiU0pTnesD9KUQd0nhR+h63t eH3pAYTL/7IBi4en8YLQwQ3HS8WFdoasbkRkSWVSailKgkWlk6xmTZkWUi9qGno1mzcC rSWUTIvvWUZDg9xGugCD0auUytAmQ9ks3Ssp1NeANM4AQLWPpfzSbqlbtHeCPE38INdN vAFl58SRT6NarjgcdHTiG43BJremBRVbGYfmi7T4S3Vmwu8lfqavYEYUWSwJW9z8M34y yOv57I+NgHMvna47hwoTJZQ0tHcrQyVgG8iZFIeOxVB3jOwh2IythalZVY4/MOnHx6Y6 gkIQ== X-Received: by 10.107.156.14 with SMTP id f14mr11883001ioe.32.1444927016712; Thu, 15 Oct 2015 09:36:56 -0700 (PDT) Original-Received: by 10.64.11.2 with HTTP; Thu, 15 Oct 2015 09:36:56 -0700 (PDT) In-Reply-To: <561FC5FE.7070806@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c06::22b; country=US; region=Iowa; city=Council Bluffs; latitude=41.2619; longitude=-95.8608; http://maps.google.com/maps?q=41.2619,-95.8608&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01PtsAWdW - 1b10836c3d5e - 20151015 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c06::22b as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2607:f8b0:4001:c06::22b; envelope-from=; helo=mail-io0-x22b.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:92700 Archived-At: --===============0165401848== Content-Type: multipart/alternative; boundary=001a1140c2dc8ec2700522274903 --001a1140c2dc8ec2700522274903 Content-Type: text/plain; charset=UTF-8 Hi Wolfgang, Why is it necessary to add currentpicture := nullpicture ; ? Thank you, Fabrice 2015-10-15 17:27 GMT+02:00 Wolfgang Schuster : > 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 > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --001a1140c2dc8ec2700522274903 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Wolfgang,
Why is it necessary to add currentpicture :=3D nullpictu= re ;= ?
Thank you,
Fabrice


2015-10-15 17:27 GMT= +02:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:
12.=20 Oktober 2015 um 20:58
A small question not directly related context.
I would like to turn my image 15 degrees.
Thanks,
Fa= brice

picture pic ;
pic :=3D currentpicture ;
u :=3D 0.5cm ;
z1 =3D origin ;
z2 =3D (9u,= 0) ;
path p ;
p :=3D fullcircle scaled 14u ;
path q ;
q :=3D p=20 shifted (9u,0) ;
pair A ;
A :=3D p intersectionpoint q ;
path a ;<= br>a :=3D z1 -- z2 ;
path b ;
b :=3D z1 -- A ;
path c ;
c :=3D z2 -= - A ;
draw a ;
draw b ;
draw c ;
pair I ;
pair J ;
I :=3D=20 point 0.6 of b ;
J :=3D point 0.6 of c ;
draw I -- J ;
pair L ;L :=3D 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 :=3D 0.5cm ;
z1 =3D origin ;
z2 =3D (9u, 0) ;
path p ;
p :=3D fullcircle scaled 14u ;
path q ;
q :=3D p shifted (9u,0) ;
pair A ;
A :=3D p intersectionpoint q ;
path a ;
a :=3D z1 -- z2 ;
path b ;
b :=3D z1 -- A ;
path c ;
c :=3D z2 -- A ;
draw a ;
draw b ;
draw c ;
pair I ;
pair J ;
I :=3D point 0.6 of b ;
J :=3D point 0.6 of c ;
draw I -- J ;
pair L ;
L :=3D 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 :=3D currentpicture ;
currentpicture :=3D nullpicture;
draw pic rotated 15 ;
\stopMPpage

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

Wolfgang

_______________________________________________________________________= ____________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a1140c2dc8ec2700522274903-- --===============0165401848== 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= --===============0165401848==--