Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Drawing a line above an image

New Here ,
Sep 14, 2010 Sep 14, 2010

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)

TOPICS
Advanced techniques
608
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 14, 2010 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 15, 2010 Sep 15, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 15, 2010 Sep 15, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources