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
Dennis Lee Bieber wrote:
But practically everything these days uses true/high color, in which
each pixel encodes the exact color to be displayed. This means that
changing all matching pixels from one given color to another given color
requires rewriting those pixels color data.
Yes, and
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
rryan@gmail.com wrote:
> 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 t
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
On 2017-01-24 07:09, rryan@gmail.com wrote:
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 scalar
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