From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Pavel@Janik.cz (Pavel =?iso-8859-2?q?Jan=EDk?=) Newsgroups: gmane.emacs.devel Subject: Re: image descriptors and defimage with :data Date: Fri, 08 Feb 2002 21:26:08 +0100 Message-ID: References: <87zo2kaaxu.fsf@tf1.tapsellferrier.co.uk> NNTP-Posting-Host: quimby2.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: quimby2.netfonds.no 1013209578 7448 195.204.10.66 (8 Feb 2002 23:06:18 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 8 Feb 2002 23:06:18 GMT Cc: emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16ZK5x-0001vw-00 for ; Sat, 09 Feb 2002 00:06:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ZJx5-0007bw-00; Fri, 08 Feb 2002 17:57:07 -0500 Original-Received: from p0042.as-l043.contactel.cz ([194.108.242.42] helo=SnowWhite.SuSE.cz) by fencepost.gnu.org with smtp (Exim 3.33 #1 (Debian)) id 16ZJv2-0007Wn-00 for ; Fri, 08 Feb 2002 17:55:00 -0500 Original-Received: by SnowWhite.SuSE.cz (PJ, from userid 500) id 94CD4441BF; Fri, 8 Feb 2002 23:57:27 +0100 (CET) Original-To: Nic Ferrier Mail-Copies-To: never X-Face: $"d&^B_IKlTHX!y2d,3;grhwjOBqOli]LV`6d]58%5'x/kBd7.MO&n3bJ@Zkf&RfBu|^qL+ ?/Re{MpTqanXS2'~Qp'J2p^M7uM:zp[1Xq#{|C!*'&NvCC[9!|=>#qHqIhroq_S"MH8nSH+d^9*BF: iHiAs(t(~b#1.{w.d[=Z In-Reply-To: <87zo2kaaxu.fsf@tf1.tapsellferrier.co.uk> (Nic Ferrier's message of "08 Feb 2002 03:50:53 +0000") User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i386-suse-linux-gnu) Original-Lines: 36 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:892 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:892 From: Nic Ferrier 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