Re: How to redraw the blanked section of a widget after a expose-event?

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

 



This forces the XOverlay element (in this case xvimagesink?) to
redraw: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html#gst-x-overlay-expose
, although your actual code would be of much interest in order to
help.

-- Milosz

On 9/27/07, krist misra <krist.misra@xxxxxxxxx> wrote:
> Hi Paul,
> Thanks for your reply, generally for the static stuff, such as text or a
> picture, it can be saved and then redrawed after expose-event occurs, but
> how can i save and redraw it for video that keeps moving on? I try to set
> the xviamge output to the exposed widget one more time in the expose-event
> handler, I thought it should rerender the covered part, but in fact it does
> not act as what i was thinking.
> I am not sure where I should post this question, maillist of gstreamer or
> that of gtk...
> Thanks
>
> K.M
>
>
>
> On 9/27/07, Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > On Thu, 2007-09-27 at 10:42 +0800, krist misra wrote:
> > > Hi experts,
> > >
> > > I am using GTK+ and gstreamer to capture and show the video frames, I
> > > created a drawable widget using gtk_drawing_area_new() and using
> > > xvimage element of gstreamer to render the video, I also connected
> > > them by a gstreamer function gst_x_overlay_set_xwindow_id(), so the
> > > video frames rendered  by xvimage can show in the widget, now it works
> > > well.
> >
> > > But I encounter a problem that if part of the drawable widget being
> > > covered by a menu or something, when the menu disappears, the covered
> > > section keeps blank, even other part of the widget still show the
> > > video.
> >
> > an expose event handler is required to *redraw* the area specified in
> > the expose event. receipt of this event means (generally speaking) that
> > whatever the contents of the window in that area used to be, they are
> > lost and needed to be recomputed/redrawn.
> >
> >
> >
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux