Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Tk::Photo and copy method

by converter (Priest)
on Aug 02, 2003 at 05:22 UTC ( #280226=note: print w/ replies, xml ) Need Help??


in reply to Tk::Photo and copy method

Tk::Photo supports the following formats:

  • BMP
  • PPM
  • GIF
  • PNG (with extension)
  • JPEG (with extension)
  • TIFF (with extension)

Try using Tk::Pixmap (which supports only XPM) instead.

converter


Comment on Re: Tk::Photo and copy method
Replies are listed 'Best First'.
Re: Re: Tk::Photo and copy method
by didier (Vicar) on Aug 02, 2003 at 10:40 UTC
    I have found the problem.

    An empty photo object must be set without explicit
    descriptor, nor image tags.
    So in the main window, the line:
    my $image = $label ->Photo('image', -height => 10, -width => 10, -format=>'XPM');
    become:
    my $image = $label ->Photo( -height => 10, -width => 10);
    Nice day for you all!
Re: Re: Tk::Photo and copy method
by didier (Vicar) on Aug 02, 2003 at 09:26 UTC
    Thank for the answer, converter.
    As you see in the code above, my problem relie on the usage
    of the copy method from Tk::Photo.
    Tk::Pixmap has no method which allows partial pixels
    manipulation.
    You can only cget() or configure() the whole.

    But more specifically my question was:
    what's means this "Tk::Photo=HASH(0xc5ef04)"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://280226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2015-07-28 02:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls