in reply to Re^5: Which tk to use and how to show images?
in thread Which tk to use and how to show images?

It would be nice if there was a Canvas method for dumping the image it renders, into the various graphic formats. I realise that you can query the pels and could format them up yourself, or import thme back into a GD object for outputting as an image, but that would be very slow.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^6: Which tk to use and how to show images?

Replies are listed 'Best First'.
Re^7: Which tk to use and how to show images?
by zentara (Cardinal) on Nov 05, 2005 at 12:49 UTC
    There is Tk::WinPhoto, which captures to various formats. It has a few drawbacks, one of which is being slow. There is also a win32 version now Tk::WinPhoto for ActiveState.

    I'm not really a human, but I play one on earth. flash japh
Re^7: Which tk to use and how to show images?
by rcseege (Pilgrim) on Nov 04, 2005 at 18:19 UTC
    Well, there is: $canvas->postscript(...), but it tends to be imperfect -- especially dealing with fonts. It looks as though this is a future option for Zinc as well, but it isn't there yet.

      The postscript option is okay if your wanting to print it, but not so great of you want to incorporate the graph into a web page or slide etc.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        You could always use Image::Magick to do a conversion I've never had a need to that myself, but it doesn't seem to tough from the API.

        Also, another interesting post on dumping to PDF:

        I also seem to vaguely recall that there are one or two other options on Win32, but can't remember.