Re: Load image



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]