jeljer te Wies <jeljer / me.com> writes:

> Pascal J. Bourguignon wrote:
>> jeljer te Wies <jeljer / me.com> writes:
>> 
>>> image = f.readlines
>>>
>>> puts image.to_hex
>>>
>>>
>>> hope somebody can give me a kick in the right direction
>> 
>> http://en.wikipedia.org/wiki/Portable_Network_Graphics
>> http://www.libpng.org/pub/png/spec/iso/index-object.html
>
> Wohw thanxs for the fast reply Pascal! ...
> though it doesn't work
> error: "undefined method `to_hex'"

Of course.  You have to implement yourself.  You know, you start typing:

    def to_hex
      ...
    end

and fill in the dots.  That's called programming.  That's what is done
with programming languages and brains.

-- 
__Pascal Bourguignon__