in reply to Bitmap for beginners (Perl Tk)
1. Almost all "images" in Tk must be converted to "Photo objects" before they can be used, as in the example given to you. There are a few exceptions, like XPM files, which can be read in as Pixmaps. But Tk comes with built-in support for png, jpg, and gifs, but you may need to load the modules like "use Tk::JPEG;" or "use Tk::PNG;".
2. If you are reading data into a photo object from "memory" as opposed to from a file, you must base64 encode the image first.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bitmap for beginners (Perl Tk)
by TonyDonker (Novice) on Feb 16, 2005 at 08:30 UTC | |
by zentara (Cardinal) on Feb 16, 2005 at 13:18 UTC |