Forum: Ruby-Gnome 2 Magick::Image in gtk

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
983428278161aebf0513417242794952?d=identicon&s=25 David Maciejak (Guest)
on 2007-05-23 15:47
(Received via mailing list)

I am experiencing problem to import a Magick::Image in a Gtk::Image to
display it.
I use the to_blob() method from Magick::Image to get the data and pass
it to a Gdk::Pixbuf with, Gdk::Pixbuf::ColorSpace::RGB, false, 8,
image_width, image_height, 3*image_width)

Perhaps the problem comes from the last argument 'rowstride' ? how I
can compute it ?

and then I created an Gtk::Image with:

img =

Did someone have ever done that ?



This email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
This topic is locked and can not be replied to.