Subject: Re: [SWIPL] Displaying icons with XPCE - Windows platform

From: Jan Wielemaker <[email-masked]>
Date: Sat, 1 Dec 2001 08:37:28 +0100

> Dear XPCErs,
> 
> With XPCE 5.1.9 running under WNT4.0, I have the following problem when
> trying to load and display icons held in '.ico' files :
> 
> 00 ?- new(P,picture).
> 01
> 02 P = @789847/picture
> 03
> 04 Yes
> 05 ?- send($P,open).
> 06
> 07 Yes
> 08 ?- new(B,bitmap('X:/00222.ico')).
> 09
> 10 B = @805430/bitmap
> 11
> 12 Yes
> 13 ?- send($P,display,$B,point(48,48)).
> 14
> 15 Yes
> 16 ?- [PCE fatal: x:/00222.ico: Xopen failed on @display/display
> 17         in:     <No exception goal>
>
<snip>
> 
> Has anyone else come across that problem already, and are more satisfying
> workarounds known ?

Looks like a serious problem I'll try to fix as soon as possible.  If
you happen to have ImageMagic around (available for both Windows and Unix)
you can try "convert x.ico x.xpm" (or x.gif).  Masks are supported for
.ICO, .XPM and .GIF files.  .XPM and .GIF surely work correctly (and
are cross-plaform).

	Cheers --- Jan