Function: svg-image

svg-image is a byte-compiled function defined in svg.el.gz.

Signature

(svg-image SVG &rest PROPS)

Documentation

Return an image object from SVG.

PROPS is passed on to create-image as its PROPS list.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-image (svg &rest props)
  "Return an image object from SVG.
PROPS is passed on to `create-image' as its PROPS list."
  (apply
   #'create-image
   (with-temp-buffer
     (svg-print svg)
     (buffer-string))
   'svg t props))