Re: opening gif images from gtk-perl



here are the key pieces.

    $newimage = load_image Gtk::Gdk::ImlibImage($test_filename);
        $newimage->render($use_w, $use_h);
        my $my_image = $newimage->copy_image();
        my $my_mask  = $newimage->copy_mask();
$w = $g->get_widget('image_edit_pixmap');
        $w->set($my_image, $my_mask);

image_edit_pixmap is a <class>GtkPixmap</class>.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]