Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: passing anything from GD to Tk ???

by Jouke (Curate)
on Sep 28, 2001 at 11:04 UTC ( [id://115328]=note: print w/replies, xml ) Need Help??


in reply to passing anything from GD to Tk ???

Hmm..I suppose this is becoming something for the GUI FAQ. This question has been asked a few days ago on the ptk mailinglist, which I responded with this suggestion:

If you use MIME::Base64, and base64-encode the data, before feeding it to Tk, you can use the image you created with GD in Tk. I've used it in pVoice 0.01, where I resize a JPG with GD before using it in a Tk button.

HTH,

Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory

Replies are listed 'Best First'.
Re: Re: passing anything from GD to Tk ???
by smackdab (Pilgrim) on Oct 21, 2001 at 08:26 UTC
    Today, I actually stumbled across why this is ...because it is legacy TCL, which expects everything to be a string and Base64 encodes that...but you probably already know this... (BTW, it would be good for the FAQ)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found