Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 10 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
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 also. – bnieland Aug 12 '15 at 13:19

Your Answer


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.