emacs-devel
[Top][All Lists]
Advanced

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

Re: puzzle.el.


From: Kevin Rodgers
Subject: Re: puzzle.el.
Date: Mon, 19 Jul 2004 11:40:39 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Matt Hodges wrote:
> In the code, I create a blank image with the following:
>
>     (create-image "" 'xpm nil :width (/ width puzzle-columns)
>                               :height (/ height puzzle-rows))
>
> which does what I want, but complains with:
>
>     Cannot find image file `'
>
> which seems fair enough. Is there a better way to do this?

According to create-image's doc string:

| Optional DATA-P non-nil means FILE-OR-DATA is a string containing image data.

the DATAP argument should be non-nil:

    (create-image "" 'xpm t :width (/ width puzzle-columns)
                            :height (/ height puzzle-rows))

or maybe you could specify an empty file:

    (create-image null-device 'xpm nil :width (/ width puzzle-columns)
                                       :height (/ height puzzle-rows))

--
Kevin Rodgers






reply via email to

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