Modify the original memory bitmap
After gaining access to an individual pixel value:
- Listing 3 replaces the
original pixel value in the bitmap with the negated value.
- Calling the
- Negating each color value in the call to the
- Inside the parameter list of the putpixel function.
When Listing 3 finishes executing:
- Every pixel in the original
memory bitmap has been replaced by its negated value.