Re: newbie's question - it's urgent .



Hi,

Chris Nystrom <ccn olenska hn org> writes:

> >          I am trying to draw RGB images on to the
> > window, iam grabbing a frame once and displaying it in
> > the expose event handler, this is ok when i do it for
> > the first time , but what if i need to do it
> > continiously ?
> >    is there any method i can use?
> 
> You might try using a loop and repeatedly call the expose event handler.
> Not sure what you do if this is not fast enough.

you should never call an expose event handler directly since this
would mean that you draw outside an expose event. Instead you should
use gtk_widget_queue_draw() to generate an expose_event.


Salut, Sven




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]