Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 12 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. – Mohammad Dehghan Feb 16 '14 at 11:40

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .