James Gray
8/31/2006 10:51:00 PM
On Aug 31, 2006, at 5:46 PM, Eric Hodel wrote:
> png is a pure-ruby PNG writing library written by Ryan Davis.
>
> To install:
>
> $ sudo gem install png
>
> To use:
>
> require 'png'
>
> canvas = PNG::Canvas.new 200, 200
>
> # Set a point to a color
> canvas[100, 100] = PNG::Color::Black
>
> # draw an anti-aliased line
> canvas.line 50, 50, 100, 50, PNG::Color::Blue
>
> png = PNG.new canvas
> png.save 'blah.png'
I'm lovin' that. Too cool!
James Edward Gray II