Programming Course in C# ¡Free!

8.41 - Display BMP on console

 Saturday, April 06, 2013 published by Exercises C#

Create a program to display a 72x24 BMP file on console.

You must use the information on the header (see the exercise of Feb. 7th). Pay attention to the field named "start of image data". After that position, you will find the pixels of the image (you can ignore the information about the color palette and draw a "X" when color is 255, and a blank space if the color is a different one).

Note: you can create a test image, with the following steps (on Paint for Windows): Open Paint, create a new image, change its properties in File menu so that it is a color image, width 72, height 24, save as "256 color bitmap (BMP)".