HINT:-
for example:
if P(x,y) is the current pixel point then if we increment the value of x then pixcel will move towards right and when we decrement the value of y then the pixcel will move towards below and when we increment the valyue of x by 1 and along it decrement the value of y by 1 then the pixcel will move towards right and below...........
good luck.....