Hi,

bertrand vanzo <[EMAIL PROTECTED]> writes:

> I'm writting a new Widget video (in gtk/gdk). For
> displaying my video, I use the callback of PlayTo of
> the VideoProvider, where I use a flip operation to
> draw each video frame. I would like to draw an image
> over the video. To do so, I have created a GtkImage
> widget, and tried to draw it in the callback. First,
> the image is drawn on the front, but right after, the
> next frame of the video come over it (normal flip
> operation). I could flip also the image to make it
> stay over each frame of the video but this seems a bit
> weight... Is there any other possibility ? How can I
> keep my image on the top? How gtk say to DirectFB that
> the image is over the video?

I guess that your code creates a GtkWidget derived from GtkDrawingArea
and uses an IDirectFBVideoProvider to draw on the widget's window's
DirectFB surface. Is that right?

To draw on the video, you'd have to draw the image to the video
surface in the callback just before you do the flip. You can use
DirectFB draw methods on the surface or access the widget->window by
means of GDK functions.  A GtkImage is not well suited for this task
since it has it's own window and drawing routines. You probably want
to use a GdkPixbuf or a GdkImage instead.


Salut, Sven


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to