Function: image-flip-vertically

image-flip-vertically is an interactive and byte-compiled function defined in image.el.gz.

Signature

(image-flip-vertically)

Documentation

Vertically flip the image under point.

When user option image-recompute-map-p is non-nil, the image's :map is recomputed to fit the newly transformed image.

View in manual

Probably introduced at or before Emacs version 29.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/image.el.gz
(defun image-flip-vertically ()
  "Vertically flip the image under point.

When user option `image-recompute-map-p' is non-nil, the image's `:map'
is recomputed to fit the newly transformed image."
  (interactive)
  (let ((image (image--get-image)))
    (image-rotate 180)
    (setf (image-property image :flip)
          (not (image-property image :flip)))
    (when (and (image-property image :original-map) image-recompute-map-p)
      (setf (image-property image :map) (image--compute-map image)))))