rotate image

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
asha09

rotate image

Post by asha09 »

Hi All................
Im developing a small vc++ application......In this application im loading list of images...
My task is... Rotate image around the center point of image.

I tried the following code for Rotating image.
double angle=(2*pi*degree)/360;
img.Rotate(angle);

this code is helful to rotatae image but not around the center point....It rotates the image from image starting point only..

im using Visual studio 6.0 and ImageMagick-6.3.4...
Please help me in VC++ code......How can i do this....


ThanksInAdvance.....
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: rotate image

Post by anthony »

See IM examples, SRT Distortion.
http://www.imagemagick.org/Usage/distorts/#srt
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply