The data you receive from encode_photo_data() is not a file, so you have to use Photo(-data=>...):
or in one line:$encoded_pic = encode_photo_data("up.bmp"); my $pic = $top->Photo(-data=>$encoded_pic);
Regards, mawemy $pic = $top->Photo(-data=>encode_photo_data("up.bmp"));
In reply to Re^5: Bitmap for beginners (Perl Tk)
by mawe
in thread Bitmap for beginners (Perl Tk)
by TonyDonker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |