# Lines over a picture (edit picture) cont

**URL:** <https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500>\
**Category:** General\
**Tags:** node-red-contrib-image-tools\
**Created:** [10 January 2023 20:00 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500 "2023-01-10T20:00:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnusso](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnusso/32/37680_2.png) [@magnusso](https://discourse.nodered.org/u/magnusso)\
**Post date:** [10 January 2023 20:00 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500/1 "2023-01-10T20:00:23Z")

</div>

As a continuation to [https://discourse.nodered.org/t/lines-over-a-picture-edit-picture/32567](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture/32567), in node-red-contrib-image-tools is there some straightforward way to draw a diagonal line from a point x1,y1 to x2, y2?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [10 January 2023 23:04 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500/2 "2023-01-10T23:04:54Z")

</div>

Did you try the suggestions from that post?  
What kind of issue are you having?  
Set up a small test flow showing what you have done, export it and paste it into a reply.

---

<div class="post-metadata">

**Author:** ![magnusso](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/magnusso/32/37680_2.png) [@magnusso](https://discourse.nodered.org/u/magnusso)\
**Post date:** [10 January 2023 23:22 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500/3 "2023-01-10T23:22:53Z")

</div>

Perhaps I'm mistaken, but to my understanding the provided example only draws horizontal or vertical lines.I would like to draw lines that connect abritrary points, say from (50,50) to (100,100).

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0a64a299150c27905c824e4e6e33932ce9ebb882.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [11 January 2023 11:23 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500/4 "2023-01-11T11:23:52Z")

</div>

My bad. Playing with that flow I see it can draw horizontal or vertical lines but not lines at an angle.  
Maybe @Steve-Mcl might have a suggestion.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 March 2023 11:23 UTC](https://discourse.nodered.org/t/lines-over-a-picture-edit-picture-cont/73500/5 "2023-03-12T11:23:53Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
