1. Some Help
Here it is, the gif file opens and displays but in the wrong palette:
include pic_load.e
include graphics.e
include image.e
global procedure gm(integer junk)
if graphics_mode(junk) then
puts(1, "Graphics mode not supported")
end if
end procedure
global procedure gif(sequence file, sequence were)
sequence junk
junk = read_gif(file)
display_image(were, junk[2])
all_palette(junk[1]/4)
end procedure
2. Re: Some Help
Albert Brauneis wrote:
>
> Here it is, the gif file opens and displays but in the wrong palette:
> include pic_load.e
> include graphics.e
> include image.e
>
> global procedure gm(integer junk)
> if graphics_mode(junk) then
> puts(1, "Graphics mode not supported")
> end if
> end procedure
>
> global procedure gif(sequence file, sequence were)
> sequence junk
> junk = read_gif(file)
> display_image(were, junk[2])
> all_palette(junk[1]/4)
> end procedure
ummmm... there's nothing wrong with your code...
using the above, and a gif called 'title.gif'
i did:
gm(18)
gif("title.gif",{0,0})
while get_key()=-1 do end while
gm(-1)
and it did what you would expect... shrug...
is it the picture maybe? try another gif...???
--Hawke'
3. Re: Some Help
- Posted by jiri babor <jbabor at PARADISE.NET.NZ>
Nov 08, 1998
-
Last edited Nov 09, 1998
Albert & Hawke,
I have not looked at anything else, but don't you have to set the palette
*before* you try to display anything? jiri
-----Original Message-----
From: Hawke <mdeland at NWINFO.NET>
To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
Date: Sunday, November 08, 1998 8:17 PM
Subject: Re: Some Help
>Albert Brauneis wrote:
>>
>> Here it is, the gif file opens and displays but in the wrong palette:
>
>> include pic_load.e
>> include graphics.e
>> include image.e
>>
>> global procedure gm(integer junk)
>> if graphics_mode(junk) then
>> puts(1, "Graphics mode not supported")
>> end if
>> end procedure
>>
>> global procedure gif(sequence file, sequence were)
>> sequence junk
>> junk = read_gif(file)
>> display_image(were, junk[2])
>> all_palette(junk[1]/4)
>> end procedure
>ummmm... there's nothing wrong with your code...
>using the above, and a gif called 'title.gif'
>i did:
>
>gm(18)
>gif("title.gif",{0,0})
>while get_key()=-1 do end while
>gm(-1)
>
>and it did what you would expect... shrug...
>is it the picture maybe? try another gif...???
>
>--Hawke'
>
4. Re: Some Help
In a message dated 11/8/98 7:22:43 AM !!!First Boot!!!, mdeland at NWINFO.NET
writes:
<< gm(18)
gif("title.gif",{0,0})
while get_key()=-1 do end while
gm(-1)
and it did what you would expect... shrug...
is it the picture maybe? try another gif...???
>>
Thanks for checking it out but I found out that it the picture I was using
didn't look right in mode 18.
Albert