bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: XBM images sometimes inverted on Windows


From: Jason Rumney
Subject: Re: XBM images sometimes inverted on Windows
Date: Sat, 01 Dec 2007 13:36:42 +0000
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

Neil Roberts wrote:
> Hi,
>
> I've noticed that when running Emacs under Windows, if you create an
> XBM image where the :data keyword is set to a string containing the
> actual bits of the bitmap then the foreground and background colours
> are swapped. 
>   
> (defconst smiley-data '(#x00 #x00 #x24 #x00 #x00 #x24 #x18 #x00))
>
>
> (defun smiley-from-xbm-bytes ()
>   ;; Make an image using the bytes directly in a string
>   (list 'image :type 'xbm :ascent 100 :width 8 :height 8
>       :data (apply 'string smiley-data)))
>   

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.





reply via email to

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