From: "Lucas L." Date: 2008-06-15T19:00:35+09:00 Subject: Re: Binary string packing/unpacking issues Robert Klemme wrote: > It's the bitwise OR operator. I don't really know why he uses it though. Can you post what "p > your_pixbuf.pixels" and "p your_pixbuf.pixels.class" print? Now we're getting somewhere. I was using puts to print pixels, and all I got was a bunch of question marks. p returns a massive String (pixels.class shows String). The string itself is uncompressed pixel data, a byte per channel of RGBA. The output is a massive string of "\000\000\000\000\000\000\000\000..." with "\377" where a pixel is drawn, which I'm assumming is 0xFF in the alpha channel (why is \377 0xFF?). However, when I tried >pixels[pixels.length-1] = '\377' >p pixels There was no change. So confused:( Thanks! -- Posted via http://www.ruby-forum.com/.