comparison lisp/image.el @ 82734:8c182b8c81d6

(create-image): Doc fix.
author Glenn Morris <rgm@gnu.org>
date Wed, 22 Aug 2007 07:48:47 +0000
parents 87fbe35cdcf5
children de6e597c221b
comparison
equal deleted inserted replaced
82733:c079d2d85189 82734:8c182b8c81d6
351 Optional DATA-P non-nil means FILE-OR-DATA is a string containing image data. 351 Optional DATA-P non-nil means FILE-OR-DATA is a string containing image data.
352 Optional PROPS are additional image attributes to assign to the image, 352 Optional PROPS are additional image attributes to assign to the image,
353 like, e.g. `:mask MASK'. 353 like, e.g. `:mask MASK'.
354 Value is the image created, or nil if images of type TYPE are not supported. 354 Value is the image created, or nil if images of type TYPE are not supported.
355 355
356 Images should not be larger than specified by `max-image-size'." 356 Images should not be larger than specified by `max-image-size'.
357
358 Image file names that are not absolute are searched for in the
359 \"images\" sub-directory of `data-directory' and
360 `x-bitmap-file-path' (in that order)."
361 ;; It is x_find_image_file in image.c that sets the search path.
357 (setq type (image-type file-or-data type data-p)) 362 (setq type (image-type file-or-data type data-p))
358 (when (image-type-available-p type) 363 (when (image-type-available-p type)
359 (append (list 'image :type type (if data-p :data :file) file-or-data) 364 (append (list 'image :type type (if data-p :data :file) file-or-data)
360 props))) 365 props)))
361 366