MCPcopy Create free account
hub / github.com/PageBot/PageBot / newImage

Function newImage

Lib/pagebot/elements/__init__.py:192–199  ·  view source on GitHub ↗

Creates Image element as position (x, y) and optional width, height (w, h) of which at least one of them should be defined. The path can be None, to be filled later. If the image is drawn with an empty or non-existent file path, a missing Image cross-frame is shown. The optional imo attr

(path=None, **kwargs)

Source from the content-addressed store, hash-verified

190 return GlyphPath(glyph, **kwargs)
191
192def newImage(path=None, **kwargs):
193 """Creates Image element as position (x, y) and optional width, height (w,
194 h) of which at least one of them should be defined. The path can be None,
195 to be filled later. If the image is drawn with an empty or non-existent
196 file path, a missing Image cross-frame is shown. The optional imo attribute
197 is an DrawBot-modelled ImageObject() with filters in place. The created
198 Image element is answered."""
199 return Image(path=path, **kwargs)
200
201def newTable(cols=1, rows=1, **kwargs):
202 """Answers a new Table instance."""

Callers 1

elementFromPathFunction · 0.85

Calls 1

ImageClass · 0.90

Tested by

no test coverage detected