emacs-devel
[Top][All Lists]
Advanced

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

Re: image descriptors and defimage with :data


From: Pavel Janík
Subject: Re: image descriptors and defimage with :data
Date: Fri, 08 Feb 2002 21:26:08 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu)

   From: Nic Ferrier <address@hidden>
   Date: 08 Feb 2002 03:50:53 +0000

   > 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)))

Of course. Can you please create a small sample so we can debug it? Try
to evaluate the following:

(progn
(defimage content-image ((:type xpm :data "/* XPM */
static char * letter_xpm[] = {
\"14 10 2 1\",
\".     c \#000000\",
\"      c \#FFFFFF\",
\"..............\",
\"...        ...\",
\".  .      .  .\",
\".   .    .   .\",
\".    ....    .\",
\".   . .. .   .\",
\".  .      .  .\",
\". .        . .\",
\"..          ..\",
\"..............\"};
")))
(insert-image content-image))

-- 
Pavel Janík

/* Identify the flock of penguins.  */
                  -- 2.2.16 arch/alpha/kernel/setup.c



reply via email to

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