Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread W. eWatson
Peter Otten wrote: W. eWatson wrote: r wrote: Change this line: draw.line((0,0),(20,140), fill=128) To This: draw.line((0,0, 20,140), fill=128) And you should be good to go. Like you said, if you need to combine 2 tuples you can do: (1,2)+(3,4) Yes, that's true, but the big question is how

Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread Peter Otten
W. eWatson wrote: > r wrote: >> Change this line: >> draw.line((0,0),(20,140), fill=128) >> >> To This: >> draw.line((0,0, 20,140), fill=128) >> >> And you should be good to go. Like you said, if you need to combine 2 >> tuples you can do: >> (1,2)+(3,4) > Yes, that's true, but the big question

Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread Bill McClain
On 2009-01-28, W. eWatson wrote: > Yes, that's true, but the big question is how to "see" the final image? > Either one employees another module or writes the file into a folder, then > displays it with a paint program? Does im.show() not work? -Bill -- Sattre Press

Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread W. eWatson
r wrote: Change this line: draw.line((0,0),(20,140), fill=128) To This: draw.line((0,0, 20,140), fill=128) And you should be good to go. Like you said, if you need to combine 2 tuples you can do: (1,2)+(3,4) Yes, that's true, but the big question is how to "see" the final image? Either one emp

Re: Drawing and Displaying an Image with PIL

2009-01-27 Thread r
Change this line: draw.line((0,0),(20,140), fill=128) To This: draw.line((0,0, 20,140), fill=128) And you should be good to go. Like you said, if you need to combine 2 tuples you can do: (1,2)+(3,4) -- http://mail.python.org/mailman/listinfo/python-list

Re: Drawing and Displaying an Image with PIL

2009-01-27 Thread W. eWatson
r wrote: On Jan 27, 9:15 pm, "W. eWatson" wrote: Here's my program: # fun and games import Image, ImageDraw im = Image.open("wagon.tif") # it exists in the same Win XP # folder as the program draw = ImageDraw.Draw(im) draw.line((0, 0) + im.size, fill=128) draw.line((0,0),(20,140), fill=128)

Re: Drawing and Displaying an Image with PIL

2009-01-27 Thread r
On Jan 27, 9:15 pm, "W. eWatson" wrote: > Here's my program: > > # fun and games > import Image, ImageDraw > > im = Image.open("wagon.tif") # it exists in the same Win XP > # folder as the program > draw = ImageDraw.Draw(im) > draw.line((0, 0) + im.size, fill=128) > draw.line((0,0),(20,140), fill=

Drawing and Displaying an Image with PIL

2009-01-27 Thread W. eWatson
Here's my program: # fun and games import Image, ImageDraw im = Image.open("wagon.tif") # it exists in the same Win XP # folder as the program draw = ImageDraw.Draw(im) draw.line((0, 0) + im.size, fill=128) draw.line((0,0),(20,140), fill=128) # How show this final image on a display? root.main