emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

image descriptors and defimage with :data


From: Nic Ferrier
Subject: image descriptors and defimage with :data
Date: 08 Feb 2002 03:50:53 +0000

I'm building an image from a part returned by an IMAP server.

Instead of saving the part to a file and opening it that way I
thought it would be fun to have no file caching and just open the
image directly from the imap server.

My code gets the part from the imap server as a string and then
constructs an image descriptor for it.

It then uses insert-image to get it into a buffer.

But the image doesn't get displayed. 


Emacs 21 manual says that defimage must have at least the following
properties in the props list:

  :type
  :file

But I don't want to specify the image as a file. Can (defimage ...)
cope with something like the following?

      (defimage content-image
        ((:type jpeg :data content)))


Nic Ferrier



reply via email to

[Prev in Thread] Current Thread [Next in Thread]