[REBOL] Re: dynamically adding images
From: carl:cybercraft at: 22-Oct-2001 22:48
On 22-Oct-01, Petr Krenzelok wrote:
> Brett Handley wrote:
>> Hi Graham,
>>>>> Anyone got a short example on how to add/remove images
>>>>> dynamically to a face?
>>>>
>>>> Each image requires its own face, doesn't it?
>>>
>>> Don't think so.
>>>
>>> Perhaps I should clarify - I need to add from 1 to 400 of
>>> the same image onto a face. I don't want to put 400 on to
>>> the face and move them as required. I want to add/remove
>>> them to/from the layout.
>> I'm a bit rusty not having used Rebol for a while (been
>> travelling), but I
>> think Carl is correct, each image is displayed by a face. If you
>> need 1 to
>> 400 images incrementally added/removed to/from a layout (the main
>> face) then
>> you will need 1 to 400 faces created/destroyed or shown/hidden at
>> the
>> appropriate time.
> This is not imo true and Cyphre will show us another aproach with
> his upcoming game :-) If I understand him correctly, he uses 1 main
> face, and every other image is being drawn using draw effect
> dialect. Then you need only one show to your top face ... Of course
> the question is which aproach is more efficient ...
Graham's trying to move from the draw dialect to bitmap images. Are
you saying the draw dialect can be used to display bitmaps? (One can
but hope.:)
> Cheers,
> -pekr-
>> Brett Handley
--
Carl Read