all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Neil Roberts <bpeeluk@yahoo.co.uk>
To: Jason Rumney <jasonr@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: XBM images sometimes inverted on Windows
Date: Sat, 1 Dec 2007 14:35:54 +0000	[thread overview]
Message-ID: <20071201143554.GA7127@janet> (raw)
In-Reply-To: <4751636A.7060806@gnu.org>

On Sat, Dec 01, 2007 at 01:36:42PM +0000, Jason Rumney wrote:
> Does this result in a valid xbm image? There is no width and height
> specified, and the data is not in the textual format that an xbm is
> supposed to be in.

You are right it doesn't make a valid XBM image, but according to the
elisp manual this is a perfectly valid way of defining an image. The
width and height are specified in the property list instead:

38.16.2 XBM Images
------------------

...

`:data DATA'
     The value, DATA, specifies the contents of the image.  There are
     three formats you can use for DATA:

   ...

        * A string or a bool-vector containing the bits of the image
          (plus perhaps some extra bits at the end that will not be
          used).  It should contain at least WIDTH * `height' bits.  In
          this case, you must specify `:height' and `:width', both to
          indicate that the string contains just the bits rather than a
          whole XBM file, and to specify the size of the image.




  reply	other threads:[~2007-12-01 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 12:42 XBM images sometimes inverted on Windows Neil Roberts
2007-12-01 13:36 ` Jason Rumney
2007-12-01 14:35   ` Neil Roberts [this message]
2007-12-01 14:41     ` Jason Rumney
2007-12-02 17:25 ` Jason Rumney

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=20071201143554.GA7127@janet \
    --to=bpeeluk@yahoo.co.uk \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jasonr@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.