the screen’s background color surrounding it.
FIGURE 23.6 A “framed” photo.
Note that if you have photos of different sizes, the thickness of your frame will change. Also, if a
photo is already smaller than the current presentation screen, the frame will have a different thickness
than any displayed oversized photos that must be scaled.
Centering the Photos
One problem you haven’t seen yet is keeping your images in the middle of the presentation screen.
When you use the functions in the PyGame library to display photos, by default, the photos are
displayed in the upper-left corner of the screen. For larger pictures that are framed, the effect of being
off-center is subtle. Notice in Figure 23.7 that the frame is missing from the upper and left sections of
the display screen.