In its early days, Tk pictures were limited to X11 bitmaps (XBMs), a two-color text-based format that let us enhance Labels and Buttons with simple drawings in place of plain text strings. XBM support still exists, but these days, we think in terms of images. Perl/Tk supports numerous image types, which may be further classified into distinct image formats. An image is an object in its own right, meaning it must be created before it can be used, has methods that manipulate it, and should be destroyed when we are through with it.
This chapter discusses the various image flavors and how we might use them, either as static pictures or dynamic animations.