[REBOL] Re: explanation, gurus? :-) (image memory representation)
From: petr:krenzelok:trz:cz at: 21-Aug-2001 20:06
----- Original Message -----
From: "Frank Sievertsen" <[fsievert--uos--de]>
To: <[rebol-list--rebol--com]>
Sent: Tuesday, August 21, 2001 7:46 PM
Subject: [REBOL] Re: explanation, gurus? :-) (image memory representation)
> > ->> str: find mold image "#"
> > == "#{000000}]"
> > ->> remove back tail str
> > == ""
> > ->> str: to-string load str
> > == "^@^@^@"
>
> What does this do? Isn't that the same as
>
> >> str: to-string #{000000}
> == "^@^@^@"
yes, sorry, I just forgot to insert first line of my script:
image: make image! 1x1
Simply said - I worked with already existant image, e.g. loaded .jpg file.
It will end-up in image datatype, so I found above complicated way of how to
get binary out of it - using mold image :-)
your way is much much more simple, of course - no need to load binary data
into string ...
-pekr-