コード例 #1
0
ファイル: nodes.py プロジェクト: electroniceagle/rinohtype
 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])