(defvar-local image-transform-rotation 0.0
"Rotation angle for the image in the current Image mode buffer.")
-(defvar-local image-transform-smoothing nil
+(defvar-local image--transform-smoothing nil
"Whether to use transform smoothing.")
(defvar image-transform-right-angle-fudge 0.0001
(list :height (cdr resized)))
,@(unless (= 0.0 image-transform-rotation)
(list :rotation image-transform-rotation))
- ,@(when image-transform-smoothing
+ ,@(when image--transform-smoothing
(list :transform-smoothing
- (string= image-transform-smoothing "smooth")))))))
+ (string= image--transform-smoothing "smooth")))))))
(defun image-transform-set-scale (scale)
"Prompt for a number, and resize the current image by that amount."
(defun image-transform-set-smoothing (smoothing)
(interactive (list (completing-read "Smoothing: "
'("none" "smooth") nil t)))
- (setq image-transform-smoothing smoothing)
+ (setq image--transform-smoothing smoothing)
(image-toggle-display-image))
(defun image-transform-original ()
(setq image-transform-resize image-auto-resize
image-transform-rotation 0.0
image-transform-scale 1
- image-transform-smoothing nil)
+ image--transform-smoothing nil)
(image-toggle-display-image))
(provide 'image-mode)