Rotating around a point

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Rotating around a point

Post by mkoppanen »

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 :lol:
Mikko Koppanen
My blog: http://valokuva.org
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Rotating around a point

Post by anthony »

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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Rotating around a point

Post by mkoppanen »

Thank you Anthony!

Sorry for responding so late, I forgot to add this topic to subscribed topics.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply