Drawing Images

image(path, (x, y), alpha=1, pageNumber=None)

Add an image from a path with an offset and an alpha value. This should accept most common file types like pdf, jpg, png, tiff and gif.

Optionally an alpha can be provided, which is a value between 0 and 1.

Optionally a pageNumber can be provided when the path referes to a multi page pdf file.

# the path can be a path to a file or a url
image("https://d1sz9tkli0lfjq.cloudfront.net/items/1T3x1y372J371p0v1F2Z/drawBot.jpg", (100, 100), alpha=.3)