drawbotscreen.jpg

LettError
RoboFab
Processing
Python
PyObjC

Copyright
2003-2008
DrawBot

Reference

Image

image(pathOrImage, x=0, y=0, alpha=1)

Import and place an image, optionally offset to (x, y) and optional transparency alpha. Note pathOrImage can either be a string with a path to a file on local disk ("Volumes/Somewhere/folder/img.jpg") or a file object. This should accept most common file types like pdf, jpg, png, tiff and gif.

# example
path = "some/folder/image.jpg"
image(path, 10, 10, alpha=.4)