From: Alexandro Kez Date: 2009-12-08T00:42:19+09:00 Subject: Reading Images Hei there, ruby coders, I'm quite new to ruby and have just done some very basic projects for my university and now have encountered a problem while programming CG with openGL bindings for ruby. Most my mates are very pesimistic about programming CG with ruby, but not me. Well, my actual problem is: I'm trying to put a texture on some shape, thus I need to load a JPEG to ram, get it's width/height and read every number that represents color code of each pixel. I just need to get width/height + array of numbers that would represent colors. With ruby I can read only lines as string from file? Or I'm not right? -- Posted via http://www.ruby-forum.com/.