Re: Rotate Picture in 4D

2017-06-28 Thread Peter Mew via 4D_Tech
Hi Now I have got to grips with it, The fastest rotate Image Function seems to be the "4d-plugin-imagemagick-master", about 10% faster than LEP and Imagemagick. Also, easier for cross platform deployment v13.6 cheers -pm On Tue, Jun 27, 2017 at 12:22 PM, Keisuke Miyako via 4D_Tech < 4d_tech@lists

Re: Rotate Picture in 4D

2017-06-27 Thread Keisuke Miyako via 4D_Tech
http://blog.4d.com/component-source-code-sharing-4d-partners/ good news is that svg component is open source ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html

Re: Rotate Picture in 4D

2017-06-27 Thread Peter Mew via 4D_Tech
V13 I'm afraid Thanks -pm Sent from my iPad > On 27 Jun 2017, at 08:52, Vincent de Lachaux via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Hello, > > If you are using v14 or more, you can try the command SVG_ROTATION_CENTERED ( > svgObject ; angle ) > > > > > >> On 27 Jun 2017, at 08:53,

Re: Rotate Picture in 4D

2017-06-27 Thread Peter Mew via 4D_Tech
Hi Bernd I went with LEP and imagemagick, which is also quite slow. I will try your code and see how it compares" Thanks -pm Sent from my iPad > On 27 Jun 2017, at 07:53, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Peter Mew: > >> I am trying to use Miyako's rotate picture c

Re: Rotate Picture in 4D

2017-06-27 Thread Keisuke Miyako via 4D_Tech
by the way, GD has a rotate function too, https://github.com/miyako/4d-plugin-gd also available via 4D native PHP ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archive

Re: Rotate Picture in 4D

2017-06-27 Thread Vincent de Lachaux via 4D_Tech
Hello, If you are using v14 or more, you can try the command SVG_ROTATION_CENTERED ( svgObject ; angle ) > On 27 Jun 2017, at 08:53, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Peter Mew: > >> I am trying to use Miyako's rotate picture component in v13. >> I dont know if

Re: Rotate Picture in 4D

2017-06-27 Thread bernard--- via 4D_Tech
> Le 27 juin 2017 à 08:53, Bernd Fröhlich via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > Peter Mew: > >> I am trying to use Miyako's rotate picture component in v13. >> I dont know if its not compatible but It wont run. > > Hi Peter, > I had some problems also (not sure what exactly), so I

Re: Rotate Picture in 4D

2017-06-26 Thread Bernd Fröhlich via 4D_Tech
Peter Mew: > I am trying to use Miyako's rotate picture component in v13. > I dont know if its not compatible but It wont run. Hi Peter, I had some problems also (not sure what exactly), so I rolled my own: // Methode: PIC_Rotate // Angelegt: BF 04.04.12 // Objekt: Bildbearbeitung // Bes

Re: Rotate Picture in 4D

2017-06-26 Thread Chip Scheide via 4D_Tech
270 :) On Sun, 25 Jun 2017 20:51:57 +0100, Peter Mew via 4D_Tech wrote: > Can anyone see why and suggest a modification > to make it so --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing *

Re: Rotate Picture in 4D

2017-06-26 Thread Peter Mew via 4D_Tech
Ok thanks -pm Sent from my iPad > On 26 Jun 2017, at 02:38, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > it's not so much "my" component since rotating a picture is an innate feature > of SVG. > the only the component does it is make sure the center of rotation is at the > c

Re: Rotate Picture in 4D

2017-06-25 Thread Keisuke Miyako via 4D_Tech
it's not so much "my" component since rotating a picture is an innate feature of SVG. the only the component does it is make sure the center of rotation is at the center of the image. did you look into the source of the resulting SVG? the center of rotation is probably wrong. https://github.com

Re: Rotate Picture in 4D

2017-06-25 Thread Peter Mew via 4D_Tech
Yes Same Result Thanks -pm On Sun, Jun 25, 2017 at 9:49 PM, Spencer Hinsdale wrote: > > did you try 270? > > > On Jun 25, 2017, at 12:51 PM, Peter Mew via 4D_Tech < > 4d_tech@lists.4d.com> wrote: > > > > Hi > > I am trying to use Miyako's rotate picture component in v13. > > I dont know if its n

Re: Rotate Picture in 4D

2017-06-25 Thread Spencer Hinsdale via 4D_Tech
did you try 270? > On Jun 25, 2017, at 12:51 PM, Peter Mew via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi > I am trying to use Miyako's rotate picture component in v13. > I dont know if its not compatible but It wont run. > So Ive extracted the code and made it a subroutine (Rotate_Picture)

Rotate Picture in 4D

2017-06-25 Thread Peter Mew via 4D_Tech
Hi I am trying to use Miyako's rotate picture component in v13. I dont know if its not compatible but It wont run. So Ive extracted the code and made it a subroutine (Rotate_Picture) C_PICTURE($1;$0) C_REAL($2;$w;$h;$ww;$hh;$s;$c) PICTURE PROPERTIES($1;$w;$h) $s:=Sin($2*Degree) $c:=Cos($2*Degree