[fxruby-users] FXImage + RMagick problems

Jeroen van der Zijp jeroen at fox-toolkit.org
Thu Oct 20 00:37:21 EDT 2005


On Wednesday 19 October 2005 18:08, Pawel Szymczykowski wrote:
> > From this, you can surmise that it is indeed possible to change the pixmap
> > kept in the X11 Server later on:- just call render() again. Of course,
> > IMAGE_KEEP is needed to ensure that the client-side pixel data is still
> > around as well.
> 
> Hi Jeroen,
> 
> Thanks for the response! It looks like I was confusing the issue a bit in my
> original testing by switching from an FXImageView to an FXCanvas which I
> don't really understand that well especially when drawing contexts come into
> place. When I went back to the FXImageView, just calling .create on the
> image before returning it seemed to fix my problem, however I'm not sure
> what I'm doing (reassigning @imageview.image = [a new image object] every
> second) is the most efficient way. I tried manipulating the pixel buffer
> directly as you suggest - would I have to do it with setpixel? I guess I
> can't access the .data attribute writer directly.
> 
> Is there a better way I can update an imported image periodically? I'm

For motion video, FXImage is probably not ideal; there is no FOX widget 
for this, but something like an XV [X video extension] would probably
be better.  With suitable hardware support, it should be able to do
30frames/second at full video resolution.

	- Jeroen

-- 
+----------------------------------------------------------------------------+
| Copyright (C) 23:30 10/19/2005 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+


More information about the fxruby-users mailing list