How to use cairooverlay to draw onto window
kususe
kususe at interfree.it
Mon Apr 23 14:47:59 PDT 2012
I wanna understand how to use cairooverlay to draw during a video playing,
cause simply overlaying svg images (created wuth matplotlib ad displayed
whit rsvgoverlay plugin) got me a memory leak.
So, I tried on a drawable window using pygk, but how to link this with
cairooverlay?
I coded:
self.player.get_by_name("cairooverlay").connect("draw",self.draw)
....
def draw_line(self):
points=[(100,100),(200,200),(300,300),(400,400)]
self.movie_window.window.draw_lines(self.gc, points)
self.pangolayout.set_text("Line")
self.movie_window.window.draw_layout(self.gc, 5, 50, self.pangolayout)
but I got an error:
draw_line() takes exactly 1 argument (5 given)
but
Other suggestions?
(Coglogoinsert returns me a segfaults, yet reported to Bugzilla)
thanks,
K.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-use-cairooverlay-to-draw-onto-window-tp4581810p4581810.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list