rotate [-ip n] [-bg <bg>] <inimage> <outimage> [-deg]
<theta> <rx> <ry>
outimage (x,y) = inimage (u,v) u = cos(theta) * x - sin(theta) * y - cos(theta) * rx + sin(theta) * ry + rx v = sin(theta) * x + cos(theta) * y - sin(theta) * rx - cos(theta) * ry + ry
g(x) = bi(f(x), f(x+1), d)
bi(x, y, d) = x(1-d) + yd
g(x) = cc(f(x-1), f(x), f(x+1), f(x+2), d)
cc(x, y, z, v, d) = y + d((-x+z) +
d((2x-2y+z-v) + d(-x+y-z+v)))
rotate mona.img monarot.img -deg 30 256 256