Re: PhotoImage.paste

2017-01-25 Thread rryan . asu
Hi Greg, Yeah, I thought of that too... So I was trying to store it as only a grayscale image and use the "L" format. I wonder if maybe that didn't work? I'll play around with that and ensure I did what I think I did. But that's a good reminder. Thanks! Russell On Tuesday, January 24, 20

Re: PhotoImage.paste

2017-01-24 Thread rryan . asu
Hi Peter, Yes, that was the first thing I did, even before using the paste method. I read the warning on effbot and other sites, and simply coded it up as new_image.putpalette(palette) photo=ImageTk.PhotoImage(image=new_image) canvas_object=canvas.create_iamge(x,y,image=photo) And this was a s

Re: PhotoImage.paste

2017-01-24 Thread rryan . asu
Hi MRAB Yes, I am pasting every time the mouse moves (or every time the tk event handler gets called). I thought about the after method, and I guess i can try to implement that. It seems like that would help in the "jerkiness" of the GUI's response, but it leaves me kinda disappointed. I obv

PhotoImage.paste

2017-01-23 Thread rryan . asu
I'm trying to build a tkinter GUI with python 3.5, and would like to interactively adjust the color palette for an image by moving the mouse in the canvas using PIL. In pseudo-code, I have something like palette=color_map(x,y) # x,y are scalars indicating the position of the mouse in the Can