unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pavel@Janik.cz (Pavel Janík)
Cc: emacs-devel@gnu.org
Subject: Re: image descriptors and defimage with :data
Date: Fri, 08 Feb 2002 21:26:08 +0100	[thread overview]
Message-ID: <m3lme3k9en.fsf@Janik.cz> (raw)
In-Reply-To: <87zo2kaaxu.fsf@tf1.tapsellferrier.co.uk> (Nic Ferrier's message of "08 Feb 2002 03:50:53 +0000")

   From: Nic Ferrier <nferrier@tapsellferrier.co.uk>
   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

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  reply	other threads:[~2002-02-08 20:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08  3:50 image descriptors and defimage with :data Nic Ferrier
2002-02-08 20:26 ` Pavel Janík [this message]
2002-02-10  5:18 ` Richard Stallman
2002-02-10 13:53   ` Nic Ferrier
2002-02-11 18:47     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3lme3k9en.fsf@Janik.cz \
    --to=pavel@janik.cz \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).