[REBOL] Re: explanation, gurus? :-) (image memory representation)
From: petr:krenzelok:trz:cz at: 21-Aug-2001 11:31
[Robbo1Mark--aol--com] wrote:
> PEKR,
>
> The image! data is contained in a binary! string in which each group of two characters
is a value corresponding to a hex value equivalent to one byte.
>
> ie {FFFFFF} = FF FF FF (hex) or 255.255.255
>
> each RGB tuple can be contained in 6 hex chars which is equivalent to total range of
colour values 0 thru 255 for each Red Green & Blue.
>
> First, Second, Third, Fourth, Last etc take subsequent groups of 6 chars as described
above.
Yes, but:
img: make image! [1x1 #{FFFFFF}]
->> img: make image! [1x1 #{FFFFFF}]
== make image! [1x1 #{FFFFFF}]
->> first img
== 255.255.255
->> second img
== 0.255.255
->> third img
== 0.0.255
->> fourth img
== 0.0.0
->> fifth img
** Script Error: Out of range or past end
** Near: fifth img
at least confusing, isn't it? There is no second, third, fourth pixel in our 'img contained
...
-pekr-