Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

8bits image ?

 [1/2] from: garcia::a2::wanadoo::fr at: 15-Jun-2003 22:07


hello, I try to develop some image processing functions with rebol, but it seems that rebol always works with !tuple for RVB images? is it possible to create a simple 8bits image (for graylevel to 0->255) ? without simply create a !tuple with 255.0.0 which will times by 3 the memory and the calculus ... thanks for help arnaud

 [2/2] from: greggirwin:mindspring at: 15-Jun-2003 15:33


Hi Arnaud, 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. -- Gregg