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.
Accomplished by:
- Calling the
putpixel
function
- Negating each color value in the call to the
makecol function
- 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.