I am trying to implement an animated display.
Basically, I have an image, and a horizontal index. I then receive color
values over a socket, and I want to update one column of the image with
that. I then go on to receive color values for the next column. This
process cycles left-to-right. Sort of a radar display that updates left
to right instead of circular.
However, I don't find a way of doing that. I see that there is the "put"
subcommand to photo for updating part of an image, but that complains
"-data option isn't supported for PPM images" (in Tk 8.3.4).
Is there any way I can accomplish what I want without going into C? Or
is there an extension out there that can help?
Frank
Depending on the size of the image, you may find RS's approach in
strimjes
useful. Have a look at <http://mini.net/tcl/1880>
Regards,
Arjen
Hi,
I took a look at strimjes, and found it is apparently possible to do
set img [image create photo ...]
$img put {list of color values} -to $x $y
which puts pixels of the specified colors into the image, starting at
($x,$y) and continuing downwards.
This is pretty close to what I need, although I'm not sure that this
behavior is documented in the man pages.
Thanks,
Frank
--
Frank Pilhofer ........................................... f...@fpx.de
Today, money still talks. Trouble is, you have to increase the
volume a lot! - Alfred E. Neuman
--
Posted via http://dbforums.com
--
Andreas Kupries <andr...@ActiveState.com>
Developer @ http://www.ActiveState.com