[REBOL] Re: Carl? Re: View in Fullscreen?? Re: Re: a demo
From: cyphre:seznam:cz at: 10-Dec-2002 9:39
Hi Romano again ;-)
----- Original Message -----
From: "Romano Paolo Tenca" <[rotenca--telvia--it]>
To: <[rebol-list--rebol--com]>
Sent: Saturday, December 07, 2002 1:40 AM
Subject: [REBOL] Re: Carl? Re: View in Fullscreen?? Re: Re: a demo
> Hi Cyphre,
>
> > -"to-image face" with one blur effect.............less than0:00:00.01 at
>
> Another thing: to-image does not change the face, only show changes it:
>
> view layout [
> b: box white
> button [
> b1: to-image b
> b/effect: compose [
> colorize (random 255.255.255)
> ]
> print ["before show:" b1 = to-image b]
> show b
> print ["after show:" b1 = to-image b]
> ]
> ]
>
> ---
> Ciao
> Romano
>
Yes, have look at this:
>> img: load-thru/binary http://www.rebol.cz/~cyphre/bay.jpg ;original
image
== make image! [192x144 #{
B34533B44634B44634B54735B74735B84836B84836B84836BA4837BA4837
BC4837BC4837BC4837BC4837BC4837BA4837B94834B...
>> test: make face [image: img size: img/size effect: [rotate 180 blur]]
;test-face used for to-image operation
>> img2: to-image test ;result is new image with all effects applied
== make image! [192x144 #{
C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8
C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C8C...
>> test/image ;still the original image here
== make image! [192x144 #{
B34533B44634B44634B54735B74735B84836B84836B84836BA4837BA4837
BC4837BC4837BC4837BC4837BC4837BA4837B94834B...
>> view layout [img3: image img effect [rotate 180 blur]] ;you will see
rotated image with blur
>> img3/image ;still the original image data here
== make image! [192x144 #{
B34533B44634B44634B54735B74735B84836B84836B84836BA4837BA4837
BC4837BC4837BC4837BC4837BC4837BA4837B94834B...
>> img = img3/image
== true
>> img = test/image
== true
>> img = img2
== false
>>
...so it looks like:
- TO-IMAGE renders the face with all applied effects and return the result
but without blitting to the screen and without modifying the face's image
while
-SHOW renders the face with all aplied effects too and blits the result to
the screen without modifying the face's image
What do you think?
Regards,
Cyphre