Re: [tcltk-perl] Package Img
Brought to you by:
hobbs
From: Jeff H. <je...@Ac...> - 2004-08-31 15:22:31
|
Paul Falbe wrote: > I am now getting this error > > can't find package Img at /usr/lib/perl5/site_perl/5.8.3/Tcl/Tk.pm line 704. > > I am trying to do the following > > $Photos{"Photo"} = $curfrm->Photo(-palette => 2, > -width => $wdth, > -height => $hght); The Img package is a Tcl extension. See http://tkimg.sourceforge.net/. I dislike and disagree that this should be required for the Photo method. You will find the need_tk('Img') call there, but that's not really accurate, especially for what you have above, which is creating a blank photo. Img is a Tcl extension that adds numerous graphicals image formats (about a dozen more, including JPEG and PNG). If you can live with the standard GIF and P*M support, you will never need Img. IMO this requirement should be moved to a higher level. -- Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a division of Sophos |