in reply to can you scale an image to size with Tk's Photo method?

The way I've handled this in the past was to either create a new picture just just the size that I need and use that for the Label. If, however, you want to scale it on the fly, I believe you will have to go with Image Magick or GD
  • Comment on Re: can you scale an image to size with Tk's Photo method?

Replies are listed 'Best First'.
Re^2: can you scale an image to size with Tk's Photo method?
by PodMaster (Abbot) on Jun 09, 2004 at 05:59 UTC
    If, however, you want to scale it on the fly, I believe you will have to go with Image Magick or GD
    As all who read pod know, i'm glad to say, thats not so => Tk::Photo, Resizing images && Tk

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Unfortunately the general answer is no. Rescaling is only possible in integral steps using the -zoom and -subsample options. For arbitrary resizing one has to use external tools.
      Did the Copy() method exist in Tk 800.022? That's what I'm stuck dealing with.
        Yes, if you mean copy(). But why not using Tk800.025?