Making an arrow image point at a particular coordinate
"Matthew Richer" <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have about 85% of this solution I just need a little assistance if possible to cap it off. Here is the scenario: I have an image of an arrow (attached) where the arrow 'tip' is at 208,0 (roughly). I need to rotate this image about that point an arbitrary amount (for my example I'm using 45 degrees but it would be a variable). Once it is rotated properly I need to overlay that rotated image onto of another image and have the arrow tip 'point' to a particular X,Y coordinate (which I have - another variable). The thing I cannot quite figure out is after I rotate how can I place the image at a particular point but it uses the top-left (0,0) to place the images as opposed to the rotated 'tip'. Any suggestions would be greatly appreciated. - "arrow.png" (attached) --- Arrow "Point" is at 208,0 (roughly) - The variables I would receive from the program would be the rotation amount (angle) and the X,Y of where to put the tip on the resulting image. - this rotates the arrow 45 degrees and places it at 50,50 on the logo: image but I want to 'tip' at 50,50 not the top-left. convert logo: ( "C:\TEMP\arrow.png" -virtual-pixel transparent +distort SRT "208,0 45" ) -geometry +50+50 -composite "C:\TEMP\testlogo.png" Thanks again for any suggestions. Matt _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users