im = GD::Image.new(200, 200) im.gif STDOUT
file = open("image_newfromxbm.xbm", "rb") im = GD::Image.newFromXbm(file) file.close im.gif STDOUT
file = open("image_newfromgd.gd", "rb") im = GD::Image.newFromGd(file) file.close im.gif STDOUT
STDERR.print im.interlace, "\n" im.interlace = TRUE STDERR.print im.interlace, "\n"
false true
im = GD::Image.new(200, 300) w, h = im.bounds STDERR.print "width: ", w, " height: ", im.height, "\n" STDERR.print "width: ", im.width, "\n" STDERR.print "height: ", im.height, "\n"
width: 200 height: 300 width: 200 height: 300
im = GD::Image.new(200, 200) im.gif STDOUT
im = GD::Image.new(200, 200) im.gd STDOUT