all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: alkibiades@gmx.de
Cc: emacs-devel@gnu.org
Subject: Re: gamegrid.el and some games
Date: Tue, 17 Sep 2002 01:13:11 +0200	[thread overview]
Message-ID: <m33cs9iok4.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: <E17r1XF-0008R8-00@fencepost.gnu.org> (Richard Stallman's message of "Mon, 16 Sep 2002 15:27:53 -0400")

[-- Attachment #1: Type: text/plain, Size: 1853 bytes --]

Richard Stallman <rms@gnu.org> writes:

>     > * Use a PBM form of the same image.  How hard is that?  Does it have
>     > drawbacks?
>
>     You mean, if a package provides only XPM we should calculate a PBM/XBM
>     image from that XPM via manipulation of the data strings?
>
> I was thinking that the programmer would supply the image in PBM
> format.  This could be in addition to XPM, or instead of XPM.  How
> hard is that?

That's easy. 

However, my misunderstanding caused me to read a bit about the PBM
format. I discovered that my Emacs supports PPM and PGM, too. The
three related image formats PBM (black & white), PGM (grayscale) and
PPM (colour) are supposed to be intermediate formats for image
conversion.

Well, it should be straightforward to convert XPM to PPM. I already
started to write a small library.

I don't know anything about Emacs' internals. Does an Emacs that
supports images always support colours, too? Does an Emacs that
supports PBM alway support PPM, too?

If this is so and if I am not missing something this would mean, that
every Emacs able to display images could display XPMs via some Lisp.

>     It is a pity that Emacs does not provide any means to create and
>     change an image in the image cache directly. This could make this task
>     (and some others) much easier.
>
> I guess so.  It would be nice if all image formats (or at least more
> of them) supported getting the image from Lisp data rather than from
> a file.  Does someone want to work on that?
[...]

Perhaps you like the approach that I chose in my unfinished code
(attached)?

For example:

(let ((pic (make-pixmap 16 16 'colour '(0 0 0))))
  (experimental!-draw-line pic 15 0 0 15 '(255 0 0))
  (experimental!-draw-line pic 0 0 15 15 '(0 0 255))
  (insert-image (experimental!-pixmap-to-image pic :ascent 'center)))

    -- Oliver


[-- Attachment #2: the-gimp.el --]
[-- Type: application/emacs-lisp, Size: 6673 bytes --]

[-- Attachment #3: Type: text/plain, Size: 245 bytes --]


-- 
Oliver Scholz               30 Fructidor an 210 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org

  reply	other threads:[~2002-09-16 23:13 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13 10:55 gamegrid.el and some games Francesco Potorti`
     [not found] ` <87sn0eglkp.fsf@bundalo.shootybangbang.com>
2002-09-13 13:09   ` Francesco Potorti`
2002-09-14 17:35     ` Richard Stallman
2002-09-13 14:16 ` Oliver Scholz
2002-09-13 17:32   ` Francesco Potorti`
2002-09-13 23:11     ` Oliver Scholz
2002-09-14  1:03       ` Alex Schroeder
2002-09-15  1:50         ` Richard Stallman
2002-09-16 12:11           ` Oliver Scholz
2002-09-19 15:22             ` Luke A. Olbrish
2002-09-20  3:44               ` Richard Stallman
2002-09-15  1:51       ` Richard Stallman
2002-09-16 11:58         ` Oliver Scholz
2002-09-16 19:27           ` Richard Stallman
2002-09-16 12:01         ` Oliver Scholz
2002-09-16 19:27           ` Richard Stallman
2002-09-16 23:13             ` alkibiades [this message]
2002-09-17 15:53               ` Richard Stallman
2002-09-17 16:12                 ` Gerd Moellmann
2002-09-18 15:04                 ` Oliver Scholz
2002-09-18 16:03                   ` Oliver Scholz
2002-09-19 11:45                   ` Eli Zaretskii
2002-09-19 15:17                   ` Richard Stallman
2002-09-20  0:26                     ` Oliver Scholz
2002-09-20  9:40                       ` Miles Bader
2002-09-20 12:01                         ` Oliver Scholz
2002-09-20 10:12                       ` Francesco Potorti`
2002-09-20  1:18                     ` Miles Bader
2002-09-20  9:20                       ` rms
2002-09-20 11:41                         ` Oliver Scholz
2002-09-20  6:54                     ` Gerd Moellmann
2002-09-14 17:35 ` 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

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

  git send-email \
    --in-reply-to=m33cs9iok4.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.