Most applications need to load at least one image that is externally stored in a file. Examples would include toolbar graphics, cursors, icons, splash screens, or merely images used for decoration or to add some pizzazz. Traditionally, the complication in working with images is having to deal with all of the different graphical file formats that might be used to store an image. Fortunately, wxPy-thon manages all of that for you—from inside wxPython. You'll use the same abstraction to deal with any image no matter its original format.
In the following sections, we'll talk about the abstractions that wxPython uses to manage images, which include large-scale images, as well as cursor images. You'll see how to load the images into your program, and then how to manipulate them.
Was this article helpful?