def offset(image, xoffset, yoffset=None):
 if (yoffset is None):
  yoffset = xoffset
 image.load()
 return image._new(image.im.offset(xoffset, yoffset))

def offset ( image , xoffset , yoffset = None ) : if ( yoffset is None ) : yoffset = xoffset image . load ( ) return image . _new ( image . im . offset ( xoffset , yoffset ) )
returns a copy of the image where data has been offset by the given distances .