$pixbuf = Gtk2::Gdk::Pixbuf->new_from_data ($pixels, # packed image data in a scalar 'rgb', # only 24- or 32-bit RGB are supported 0, # no alpha, data is 24-bit 8, # only 8 bits per sample are supported $w, # in pixels $h, # in pixels $w*3); # number of *bytes* in each row