K_M_McMahon has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance to all who respond! -Kevin#!/usr/bin/perl -w use strict; use Tk; use Tk::Photo; use Tk::JPEG; my $file="c:/pictures/2005/guns/DSC00101.JPG"; my $w=new MainWindow; my $image=$w->Photo(-file=>"$file", -format => 'jpeg'); my $b = $w->Button( -image => $image )->pack(); $b->configure(-image => $image); &MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Resizing Jpegs in TK
by Zaxo (Archbishop) on Jan 17, 2005 at 06:02 UTC | |
by K_M_McMahon (Hermit) on Jan 17, 2005 at 08:16 UTC | |
by zentara (Cardinal) on Jan 17, 2005 at 12:50 UTC | |
by BrowserUk (Patriarch) on Jan 17, 2005 at 13:02 UTC | |
by K_M_McMahon (Hermit) on Jan 17, 2005 at 20:47 UTC | |
|
Re: Resizing Jpegs in TK
by zentara (Cardinal) on Jan 17, 2005 at 12:46 UTC | |
by K_M_McMahon (Hermit) on Jan 17, 2005 at 20:46 UTC | |
|
Re: Resizing Jpegs in TK
by ldln (Pilgrim) on Jan 17, 2005 at 19:05 UTC |