Microcebus has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I'm writing on a program with a Tk GUI and i would like to display a png graphic that is built within my script using the GD module. Saving the picture works fine:but displaying the picture directly in a Label doesn't work:open(EXPORT_GRAPHIC,">picture.png"); binmode EXPORT_GRAPHIC; print EXPORT_GRAPHIC $picture->png; close EXPORT_GRAPHIC;
Does anyone know how to solve this problem?$new_window=$mw->Toplevel(); $frame=$new_window->Frame()->pack(); $frame->Label(-image=>$picture)->pack();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is it possible to display png images build with GD using Tk WITHOUT saving images first?
by BrowserUk (Patriarch) on Oct 22, 2010 at 09:24 UTC | |
|
Re: Is it possible to display png images build with GD using Tk WITHOUT saving images first?
by kcott (Archbishop) on Oct 22, 2010 at 19:13 UTC |