Re: Load image
- From: Franck <franck netinfini com>
- To: "yuct" <yuct legend com cn>
- Cc: Mailing Gtk-Perl <gtk-perl-list gnome org>
- Subject: Re: Load image
- Date: Fri, 17 Aug 2001 11:59:01 +0200
I can't flush my window !!!
What's the action for reflush this.
Thx
Code
#####################
$im = Gtk::Gdk::ImlibImage->load_image("$nom_image.png") or die;
$im->render($im->rgb_width, $im->rgb_height);
my $p = $im->move_image();
my $m = $im->move_mask;
my $pixmap = new Gtk::Pixmap($p, $m);
$window->add($pixmap);
$window->show_all();
Gtk->main();
#####################
You must flush your window, such as, add your image to a container and
rebuild it.
Or, you may flush your events queue,
Gtk->main_iteration while Gtk->event_pending;
or
Gtk->main_iteration_do(0) for (1..100);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]