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

[REBOL] Any easy way to get at the bytes within an image?

From: carl::cybercraft::co::nz at: 23-May-2002 20:57

It seems you can't change the individual bytes of the tuples within images...
>> pic: make image! 2x2
== make image! [2x2 #{000000000000000000000000}]
>> pic/1
== 0.0.0
>> pic/1/1
== 0
>> pic/1/1: 10
** Script Error: Cannot use path on integer! value ** Near: pic/1/1: 10 which isn't intuitive as you can do with normal tuples...
>> color: 0.0.0
== 0.0.0
>> color/1: 10
== 10
>> color
== 10.0.0 So, does anyone know an easy and quick way to change the individual bytes within images? -- Carl Read