isync has asked for the wisdom of the Perl Monks concerning the following question:
$this->{thumb_panel} = Wx::Panel->new($this->{parent}, -1, wxDefaultPo +sition, [320, 240], wxSUNKEN_BORDER); $this->{thumb_sb} = Wx::StaticBitmap->new($this->{thumb_panel}, -1, Wx +::Bitmap->new("somethumb.jpg", wxBITMAP_TYPE_ANY));
I experience flickering on the exchange. The image disappears for a second, or I can see "the switch taking place" or it starts out as a smaller square and zooms in on the 320x240 size (on windows) or (on Linux) first a formerly displayed image is shown, then replaced by the current one... something like that.my $handler = Wx::JPEGHandler->new(); my $image = Wx::Image->new(); my $bmp; $handler->LoadFile( $image, $file ); $image->Rescale(320,240); $bmp = Wx::Bitmap->new($image); if( $bmp->Ok() ) { $this->{thumb_sb} = Wx::StaticBitmap->new($this->{thumb_panel}, -1 +, $bmp); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Displaying changing images in Wx:: produces flicker
by zentara (Cardinal) on Feb 27, 2009 at 15:33 UTC | |
by isync (Hermit) on Feb 27, 2009 at 15:45 UTC | |
|
Re: Displaying changing images in Wx:: produces flicker
by Anonymous Monk on Feb 27, 2009 at 16:15 UTC | |
by isync (Hermit) on Feb 27, 2009 at 17:52 UTC | |
by Anonymous Monk on Feb 28, 2009 at 08:04 UTC | |
by Anonymous Monk on Feb 27, 2009 at 17:09 UTC |