grid.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ns3-rdma 作者: bobzhuyb 项目源码 文件源码
def output_png(self, filename):
        surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 
                                     self.__data.get_width(), 
                                     self.__data.get_height())
        ctx = cairo.Context(self.__buffer_surface)
        self.__data.draw(ctx)
        surface.write_to_png(filename)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号