Next: Drawing Text Prev: Drawing Up: Drawing Top: Top

1.2.1. Drawing Images

An image (pixmap) can be drawn by using the GC method PutImage. This method requires an Image object which can be created using the Visual Info method CreateImage. The only way to get a Visual Info object is by using the widget method GetVisualInfo which returns a list of Visual Info objects.

For example (picture is a string object that contains an image in the correct format for the call to CreateImage, see the manual for more information):