Copy a rectangular area (cont'd)
The third and fourth parameters in the call to
blit in
Listing 4:
- Specify the coordinates of the upper-left
corner
- Of the rectangle in the source bitmap
- That will be copied to the destination bitmap
The fifth and sixth parameters specify:
- The
coordinates of the upper-left corner
- In the destination bitmap
- To which the
rectangle of pixel values will be copied.
The last two parameters specify
the width and height of the rectangle in pixels.