8

you can consider me new to GIMP. I've tried by holding Shift key, can draw straight line but I want a straight horizontal/vertical line. So, How can I draw straight vertical/horizontal line?

8

You can hold Ctrl key with Shift to restrict the angle of the straight line to multiples of 15°.

  • With wich drawing tool? I can't see it working (in Gimp 2.8) – Remo.D Dec 26 '15 at 18:29
  • You should hold both Shift and Control - Shift draws a straight line, Control restricts the angles of that line. – jsbueno Dec 26 '15 at 18:38
  • Note that you have to push Shift before Control. If you try to push them both simultaneously, you might wind up w/the eyedropper tool. – JohnL4 May 16 '16 at 18:24
2

I would create a horizontal (or vertical) guide were you want the line (with the menu Image/Guides/New Guide), then use the path tool (shortcut B).

Click on the guide where you want the first point of the segment, then click on where you want the second point of the segment. The guide will ensure the two points are aligned.

When done, click on "Stroke Path" in the tools pane and select the paint tool you want the line draw with.

Alternatively you can set the grid with the proper size and use the path tool again. I prefer guides as they are more flexible, but it depends on what you are drawing.

You won't be able to modify the line after it has been drawn as GIMP deals with bitmap images only.

  • This works, but it is too complicated by huge factor - @Schumacher's answer points the way the way to do it. – jsbueno Dec 26 '15 at 18:37
  • Convoluted, yes. But, this is the best and easisest answer I have found in researching for just drawing a simple 1px straight horizontal dotted line. – Eric Hepperle - CodeSlayer2010 Jun 5 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.