stormwolfen has asked for the wisdom of the Perl Monks concerning the following question:
But when I try to run it, the image always comes back black. I have done a literal cut & paste of the code. I am on a windows system. I have also printed the encoded jpg and decoded it using a different application and it still comes back black.
I use this code using the same file that is being encoded and resized in the above link, and it shows fine.
Any ideas??my $mw = MainWindow->new; my $button = $mw->Button()->pack(); my $photo = $button->Photo( -format => 'jpeg', -file => 'found.jpg' ); + $button->configure( -image => $photo ); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::Photo-data() error?
by Albannach (Monsignor) on Dec 16, 2001 at 10:35 UTC | |
by stormwolfen (Acolyte) on Dec 16, 2001 at 23:57 UTC | |
|
(ichimunki) Re: Tk::Photo-data() error?
by ichimunki (Priest) on Dec 16, 2001 at 09:15 UTC |