From: Clifford Heath Date: 2004-11-20T15:33:09+09:00 Subject: Re: bitmaps, GTK and RMagick. Joe Van Dyk wrote: > How can I create a bitmap in Ruby? I have a bunch of RGBA values, and need > to convert them into a bitmap or some other picture format. I wanted the reverse recently, and I used RMagick to read my png files. It would probably work for what you want also. I was experimenting with a new image coding method like PNG with Adam-7 pixel ordering, that yields some nice behaviour for raster maps in that you can create a 1/Nth scale map (N a power of two) by reading and decompressing only 1/N^2 of the file. I'd like to write a viewer for the resultant files, but I need to work out how to create GTK images using RBG data. Any examples to look at? I also want to use dynamic images in a column of a GTK treeview. It looks like it should be possible, but I've scratched my head nearly hairless trying. Nice PNG code Michael, thanks.