# HG changeset patch # User Gerd Moellmann # Date 946745206 0 # Node ID 40c18bc759e96887f59ced4e94a7ae6c70b7c8f9 # Parent 893ec72bd6b1121f960d83e8dbff33daa0415fce Change description of :data for images. diff -r 893ec72bd6b1 -r 40c18bc759e9 etc/NEWS --- a/etc/NEWS Sat Jan 01 16:42:20 2000 +0000 +++ b/etc/NEWS Sat Jan 01 16:46:46 2000 +0000 @@ -1760,6 +1760,13 @@ building images from data. When this is done, no `:file' property may be present in the image specification. +`:data DATA' + +Get image data from DATA. (As of this writing, this is not yet +supported for image type `postscript'). Either :file or :data may be +present in an image specification, but not both. All image types +support strings as DATA, some types allow additional types of DATA. + *** Supported image types **** XBM, image type `xbm'. @@ -1819,11 +1826,6 @@ XPM images can be built from memory instead of files. In that case, add a `:data' property instead of a `:file' property. -`:data DATA' - -DATA must be a string containing an XPM image. The contents of the -string are of the same format as that of XPM files. - The XPM library uses libz in its implementation so that it is able to display compressed images. @@ -1839,11 +1841,6 @@ package `jpegsrc.v6a.tar.gz', or later. Additional image properties are: -`:data DATA' - -DATA must be a string containing a JPEG image. The contents of the -string are of the same format as that of JPEG files. - **** TIFF, image type `tiff' Support for TIFF images requires the external library `libtiff', @@ -1874,7 +1871,7 @@ (defun display-anim (buffer file idx max first-time) (when (= idx max) (setq idx 0)) - (let ((img (create-image file nil :index idx))) + (let ((img (create-image file nil nil :index idx))) (save-excursion (set-buffer buffer) (goto-char (point-min))