$this->{thumb_panel} = Wx::Panel->new($this->{parent}, -1, wxDefaultPosition, [320, 240], wxSUNKEN_BORDER); $this->{thumb_sb} = Wx::StaticBitmap->new($this->{thumb_panel}, -1, Wx::Bitmap->new("somethumb.jpg", wxBITMAP_TYPE_ANY)); #### 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); }