Function: preview-gs-resolution

preview-gs-resolution is a byte-compiled function defined in preview.el.

Signature

(preview-gs-resolution SCALE XRES YRES)

Documentation

Generate resolution argument for gs.

Calculated from real-life factor SCALE and XRES and YRES, the screen resolution in dpi.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-gs-resolution (scale xres yres)
  "Generate resolution argument for gs.
Calculated from real-life factor SCALE and XRES and
YRES, the screen resolution in dpi."
  (format "-r%gx%g"
          (/ (* scale xres) (preview-get-magnification))
          (/ (* scale yres) (preview-get-magnification))))