[REBOL] Re: explanation, gurus? :-) (image memory representation)
From: g:santilli:tiscalinet:it at: 21-Aug-2001 19:28
On 21-Ago-01, you wrote:
PK> Now the question is - we have data in display, or let's say -
PK> 'img already exists, and we would like to do something
PK> directly in it (e.g. user adjusted img data by some effect,
PK> e.g. brightness). How to easily get the image data back into
PK> string, avoiding copying data?
to-binary will work, but it is probably doing a copy. (I didn't
check that. You may try with Nenad's memory watcher or just by
poking in the binary to see if the image changes.)
PK> What about this one?
Probably it's just that REBOL does not clear the memory area
assigned to the image upon creation.
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/