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;
In reply to Tk::Photo-data() error? by stormwolfen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |