Function: image-transform-set-rotation

image-transform-set-rotation is an interactive and byte-compiled function defined in image-mode.el.gz.

Signature

(image-transform-set-rotation ROTATION)

Documentation

Prompt for an angle ROTATION, and rotate the image by that amount.

ROTATION should be in degrees.

Probably introduced at or before Emacs version 24.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defun image-transform-set-rotation (rotation)
  "Prompt for an angle ROTATION, and rotate the image by that amount.
ROTATION should be in degrees."
  (interactive "nRotation angle (in degrees): " image-mode)
  (setq image-transform-rotation (float (mod rotation 360)))
  (image-toggle-display-image))