Prepare the bitmap for the small image
Listing 3 calls the create_bitmap function to:
The width and height of the small bitmap are equal to the diameter of the ball plus two pixels.
Listing 3. Prepare the bitmap for the small image.
smallBuffer = create_bitmap(radius*2 + 2,radius*2 + 2); |