[REBOL] Re: 8bits image ?
From: greggirwin:mindspring at: 15-Jun-2003 15:33
A> I try to develop some image processing functions with rebol, but it seems
A> that rebol always works with !tuple for RVB images?
A> is it possible to create a simple 8bits image (for graylevel to 0->255) ?
A> without simply create a !tuple with 255.0.0 which will times by 3 the memory
A> and the calculus ...
I don't know of any way to do that directly, not with an image! value
anyway. You could use the BRIGHTNESS? function to map the value to an
integer, but if an integer! is 4 bytes and color tuples are
efficiently handled as 4 bytes as well (I don't know if they are or
not), you wouldn't really gain anything, except maybe some simplicity.