Skip to main content
Participant
September 14, 2010
Question

Drawing a line above an image

  • September 14, 2010
  • 3 replies
  • 627 views

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)

This topic has been closed for replies.

3 replies

Participant
September 15, 2010

All right. ImageDrawLine() makes my job! Thanks anyway.

September 15, 2010

May be you can do with the help of bresenham's line drawing algorithm...

September 14, 2010

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.