[cairo] Cairo and Gstreamer Cairooverlay
Francesco Bruni
brunifranceso03 at gmail.com
Thu Apr 26 06:42:51 PDT 2012
I wanna overlay some lines during a video playing. I'm using Python.
Using a "signal", I set the context :
self.cr = widget.window.cairo_create()
and then "automatically", the drawing function is called:
def draw_overlay (self,cairooverlay,cr,timestamp,duration):
self.cr.set_source_rgb(0,0,0)
self.cr.set_line_width(10)
self.cr.move_to(10,15)
self.cr.line_to(20,20)
self.cr.stroke()
I got no errors, but no lines are drawn.
Suggestions?
Thanks in advance,
FB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120426/2dc24fb8/attachment.htm>
More information about the cairo
mailing list