Function: image-increase-size
image-increase-size is an interactive and byte-compiled function
defined in image.el.gz.
Signature
(image-increase-size &optional N POSITION)
Documentation
Increase the image size by a factor of N.
If N is 3, then the image size will be increased by 30%. The default is 20%.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image.el.gz
(defun image-increase-size (&optional n position)
"Increase the image size by a factor of N.
If N is 3, then the image size will be increased by 30%. The
default is 20%."
(interactive "P")
;; Wait for a bit of idle-time before actually performing the change,
;; so as to batch together sequences of closely consecutive size changes.
;; `image--change-size' just changes one value in a plist. The actual
;; image resizing happens later during redisplay. So if those
;; consecutive calls happen without any redisplay between them,
;; the costly operation of image resizing should happen only once.
(run-with-idle-timer 0.3 nil
#'image--change-size
(if n
(1+ (/ (prefix-numeric-value n) 10.0))
1.2)
position))