示例#1
0
 def build_flowable(self):
     width_string = self.get('width')
     align = self.get('align')
     return rt.Image(self.image_path,
                     scale=self.get('scale', 100) / 100,
                     width=convert_quantity(width_string),
                     align=align)
示例#2
0
文件: nodes.py 项目: MathB/rinohtype
 def parse(self):
     return rt.Image(self.get('uri').rsplit('.png', 1)[0])