in reply to Re: Resizing Jpegs in TK
in thread Resizing Jpegs in TK
#!/usr/bin/perl -w use Tk; use Tk::Photo; use Tk::JPEG; use strict; my $file="c:/pictures/2005/guns/DSC00101.JPG"; my $w=new MainWindow; my $image1=$w->Photo(-file=>"$file", -format => 'jpeg'); my $image=$w->Photo(); $image->copy($image1,-subsample=>4); $b = $w->Button( -image => $image )->pack(); $b->configure(-image => $image); &MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Resizing Jpegs in TK
by zentara (Cardinal) on Jan 17, 2005 at 12:50 UTC | |
|
Re^3: Resizing Jpegs in TK
by BrowserUk (Patriarch) on Jan 17, 2005 at 13:02 UTC | |
by K_M_McMahon (Hermit) on Jan 17, 2005 at 20:47 UTC |