Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Animated Display

9 views
Skip to first unread message

Frank Pilhofer

unread,
Sep 18, 2002, 11:28:27 AM9/18/02
to
Hi,

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

Arjen Markus

unread,
Sep 19, 2002, 2:27:27 AM9/19/02
to

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

f...@fpx.de

unread,
Sep 19, 2002, 10:35:41 PM9/19/02
to
Arjen Markus <arjen....@wldelft.nl> wrote:

> Frank Pilhofer wrote:
> >
> > 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.
> >
>
> 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>
>

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

Frank O'Donovan

unread,
Oct 20, 2002, 9:14:27 AM10/20/02
to

Interesting. Can you help me in identifying where you found
"strimjes"? Thanks

--
Posted via http://dbforums.com

Arjen Markus

unread,
Oct 21, 2002, 3:31:54 AM10/21/02
to

There is a small collection of pages on the Wiki, try:
<http://wiki.tcl.tk./1846>

Regards,

Arjen

Andreas Kupries

unread,
Oct 21, 2002, 2:04:20 PM10/21/02
to

"Frank O'Donovan" <mem...@dbforums.com> wrote in message
news:1950622.1...@dbforums.com...

>
> Interesting. Can you help me in identifying where you found
> "strimjes"? Thanks

http://mini.net/tcl/strimjes*

--

Andreas Kupries <andr...@ActiveState.com>

Developer @ http://www.ActiveState.com

0 new messages