Copy link to clipboard
Copied
Hi to all, I have a <cfimage> related question for you.
I need to draw a line with a specified angulation above an image.
How can I do? My first idea is to take a "line" image (a png with width 20px and height 1px) and rotate it with cfimage.
But then I have to draw this line starting from a specific point on the background image. I don't know how.
Any idea?
P.S.
My background image is something similar to http://www.lentieocchiali.com/ricettaoculistica/index_file/image002.jpg (The half-moon on the bottom)
Copy link to clipboard
Copied
You could use the exact same html and css technique as desribed here:
http://davidwalsh.name/mootools-slideshow
Obviously minus the last step with MooTools. Or what I would do is actually use JavaScript to draw the line.
Copy link to clipboard
Copied
May be you can do with the help of bresenham's line drawing algorithm...
Copy link to clipboard
Copied
All right. ImageDrawLine() makes my job! Thanks anyway.