#1
  1. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    606
    Rep Power
    65

    Smile Saving the Canvas


    After you generate a drawing on a canvas (Tkinter or whatever), how can you save it to an image file?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    394
    Rep Power
    51
    Hi!

    You can save it to a postscript, using e.g. canvas.postscript(file="test.ps").

    Regards, mawe
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    606
    Rep Power
    65

    Smile


    Originally Posted by mawe
    Hi!

    You can save it to a postscript, using e.g. canvas.postscript(file="test.ps").

    Regards, mawe
    Thanks mawe, this works fine, but now I am stuck with a postscript file and have no program that uses it. Is there a way to convert this image format to something more popular?

    Is there a way to use PIL with the canvas?
    Last edited by Dietrich; September 16th, 2005 at 02:59 PM.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    11
    how about just iterating over all cords and entering them into a file if you need it for reuse
    Those people who think they know everything are a great annoyance to those of us who do.

IMN logo majestic logo threadwatch logo seochat tools logo