# How to draw a horizontal line in a slice view?

**URL:** <https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324>\
**Category:** Development\
**Created:** [December 10, 2023, 4:13am UTC](https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324 "2023-12-10T04:13:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fokatu](https://avatars.discourse-cdn.com/v4/letter/f/6bbea6/32.png) [@Fokatu](https://discourse.slicer.org/u/Fokatu)\
**Post date:** [December 10, 2023, 4:13am UTC](https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324/1 "2023-12-10T04:13:45Z")

</div>

I want that the line to occupy the entire width of the view, and still occupy the entire width when zooming and panning.  
At the same time, the line should move as the image moves.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [December 10, 2023, 5:22am UTC](https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324/2 "2023-12-10T05:22:13Z")

</div>

Did you try the line tool?

---

<div class="post-metadata">

**Author:** ![Fokatu](https://avatars.discourse-cdn.com/v4/letter/f/6bbea6/32.png) [@Fokatu](https://discourse.slicer.org/u/Fokatu)\
**Post date:** [December 10, 2023, 5:32am UTC](https://discourse.slicer.org/t/how-to-draw-a-horizontal-line-in-a-slice-view/33324/3 "2023-12-10T05:32:41Z")

</div>

Do you mean the line markup?  
I know the tool. But it can only be drawn with two endpoints.  
I want the line to be of infinite length. (like the crosschair)  
Thanks!
