예제 #1
0
 def to_stream(self):
     from ctypes import string_at
     str = Str(None)
     gtlib.gt_canvas_cairo_file_to_stream(self.canvas, str)
     return string_at(str.get_mem(), str.length())
예제 #2
0
 def to_stream(self):
     from ctypes import string_at
     str = Str(None)
     gtlib.gt_canvas_cairo_file_to_stream(self.canvas, str._as_parameter_)
     return string_at(str.get_mem(), str.length())
예제 #3
0
 def to_stream(self):
     from ctypes import string_at
     s = Str(None)
     gtlib.gt_graphics_save_to_stream(self.g, s._as_parameter_)
     return string_at(s.get_mem(), s.length())
예제 #4
0
 def to_stream(self):
     from ctypes import string_at
     s = Str(None)
     gtlib.gt_graphics_save_to_stream(self.g, s)
     return string_at(s.get_mem(), s.length())