You will be working with image files of a particular kind: they will all be bitmap files (with extension .bmp), using 24-bit color and the width and height of the images will always be multiples of 4. Two examples of such files will be posted on Canvas. Your program should also be able to work with other images of the same type. Your goal is to read in such an image file and create two new image files from the first:
- one that is twice as tall and twice as wide (called "big.bmp")
- one that is half as tall and half as wide (called "small.bmp")
Your program should start by reading in a file named "test.bmp".
How will you do the shrink operation?
How will you do the expand operation?