From: jeljer te Wies Date: 2009-03-23T07:52:20+09:00 Subject: Re: convert PNG to hex Pascal J. Bourguignon wrote: > jeljer te Wies writes: > >>> >> 100..199 for the second row etc. White pixels represent ascii codes. The >> are black > And what's the relationship with lines and hex? > > You want to write methods named Image.width, Image.height, > Image.pixelAt(x,y), Pixel.isWhite?, Pixel.isBlack?, things like that. now it is a task I would like to complete.. The only thing I want to know is "Who many black pixels are between the white pixels". (I have uploaded the image) ... So what i want is: 1) get the image in my program 2) get each pixel and decide if it is white or black thats all !... but well .. it seams it is harder then it sounds Attachments: http://www.ruby-forum.com/attachment/3474/PNG.png -- Posted via http://www.ruby-forum.com/.