Converting a Tkinter Canvas item to a format that Picture functions understand

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dampflames
    New Member
    • Nov 2007
    • 5

    Converting a Tkinter Canvas item to a format that Picture functions understand

    I was wondering how I can take what is on the Canvas (from Tkinter), and convert it into a picture so that it is the correct format for Picture functions.
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Presumably, you'll be needing the Python Image Library installed.

    Comment

    • dampflames
      New Member
      • Nov 2007
      • 5

      #3
      My problem is that I can't seem to figure out what code will make the Tkinter Canvas into PIL format. I definitely have PIL, as I've used it countless times.

      Comment

      • dazzler
        New Member
        • Nov 2007
        • 75

        #4
        I myself use PIL for drawing shapes and then put the PIL image to Tkinter label =)

        Comment

        • dampflames
          New Member
          • Nov 2007
          • 5

          #5
          But what if you want to be able to draw on the canvas?
          I want to draw on it, then after, put it through functions that manipulate it using PIL..

          Comment

          Working...