I know there is a DrawRotate function but I was wondering if it is possible to rotate an element around a certain point using the MagickWand API ?
Currently all I have figured out is to do some translations and render the element on an transparent canvas and overlay that on the final image. Not very elegant
Rotating around a point
Rotating around a point
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Rotating around a point
I thing we need a little more detail ablut the 'element'.
Draw will rotate the coordinates of drawing elements BEFORE thay are drawn if you use appropriate settings.. see IM examples, Draw, warping the drawing surface
http://www.imagemagick.org/Usage/draw/#transform
Draw will rotate the coordinates of drawing elements BEFORE thay are drawn if you use appropriate settings.. see IM examples, Draw, warping the drawing surface
http://www.imagemagick.org/Usage/draw/#transform
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Rotating around a point
Thank you Anthony!
Sorry for responding so late, I forgot to add this topic to subscribed topics.
Sorry for responding so late, I forgot to add this topic to subscribed topics.
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org