Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wish to draw long black line in Photoshop with no anti-aliasing.

If I use Line tool it draws line with anti-aliasing. I.e. any imprecise line location relative to the pixel margins produce partially colored pixels near the line. While I need exact one selected color drawn.

I can use Pencil tool with 1 pixel size but and the result is ok, but it is hard to draw long lines with a Pencil.

enter image description here

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted
  1. Select pencil tool.

  2. Now you have 2 options:

    • To draw vertical or horizontal lines: Hold Shift and drag (your mouse movement will be limited to x or y axis)

    • To draw any other straight lines: click on the beginning of the line (you see a dot), move your mouse to the end of the line, hold Shift and click.
      A straight line will be drawn between the two points you clicked on.

share|improve this answer
    
Best (and IMHO the only proper) answer. –  BloodPhilia May 22 '12 at 20:46
    
I wish I could upvote this more than once. –  MD.Unicorn Feb 16 at 11:40
add comment

The shape tools have 3 different drawing modes:

  1. Shape Layers
  2. Paths
  3. Fill Pixels

The first 2 create vector shapes, whereas the last creates raster shapes. If you select Fill Pixels you can uncheck Anti-alias, which will then do what you want.

Alternatively, for horizontal and vertical lines, you can use the column and row selection tools. And for other angles, you can use the pen tool to create the path and stroke the path using the pencil tool.

If your problem isn't antialiasing (which is usually a good thing) but rather blurry lines where you want them to be crisp, then you just need to make sure your lines/paths are aligned with the pixel grid. But to do this, you'll need change your line/path's reference point to one of the corners instead of the center; otherwise, the line will be drawn between pixels, causing each adjacent pixel to be partially filled rather than a single pixel being completely filled.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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