Re: Some Help

new topic     » goto parent     » topic index » view thread      » older message » newer message

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'
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu