(use right click on the above link and choose the 'Save As' option
to save the image to the .BMP file).
Allow the user to change the pixelization
of the image.
The F1 key increases the pixels, the F2 key decreases
them.
The colour of the pixel should be calculated as a mean
value of colours of all real pixels placed in the original image in
the area covered by the pixel.
Use the following sizes for pixels: 1, 2, 4, 8, 16 (the
default value), 32, 64, etc.
Technical requirements:
The window should be resizable.
There can be no flickering during resizing the window or changing
the pixelization level.
The drawing speed should be satisfactory (use the demonstration
application as a point of reference).
The image should be loaded automatically at the beginning of the
application.
Do not hardcode the size of the bitmap, use an appropriate
function to get it.
The image can be loaded either from resources or from a file.
Be sure to load the image only once.
The image should fill the window perfectly, regardless of the
window's size.