Chapter 15. The Canvas Image Item

Table of Contents
Methods
Options

The image item draws an image on the canvas.

    photo = PhotoImage(file="sample.gif")
    item = canvas.create_image(10, 10, anchor=NW, image=photo)

Methods

The following methods are used to create and configure image items:

create_image(x0, y0, options...) => id

Create a image item placed relative to the given position. Note that the image itself is given by the image option.

[FIXME: add note on image ownership]

delete(item)

Delete an image item.

coords

coords(item, x0, y0). Move one or more image items.

itemconfigure

itemconfigure(item, options...). Change the options for one or more image (or other) items.