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

Is it possible (and how) to move a layer by half pixel (or other float values). I'm drawing a small image where moving a single pixel is too noticeable.

share|improve this question
up vote 11 down vote accepted

Increase (scale) the size of the entire image by 2, move the layer over 1 pixel, and then scale the entire image back down. Make sure the image support anti-aliasing.

share|improve this answer
    
I was about to suggest moving 1 pixel and halfing the intensity of it, and fiddling with it from there. But your method accomplishes it undoubtedly more accurately and easily. Nice! – Aeo Jan 19 '11 at 15:04
    
Nice. The result after linear interpolation is a slightly blurry, but the Sharpen filter fixed that up. – Lie Ryan Jan 19 '11 at 15:22
3  
When upscaling, don't use interpolation. That way you'll get more accurate results. @LieRyan – oKtosiTe Jan 20 '11 at 10:23
    
This technique worked great in paint.net also. – bnieland Aug 12 '15 at 13:19

You must log in to answer this question.

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