/Create_bitmap

NCNU C++ course

Primary LanguageC++MIT LicenseMIT

Create_bitmap

Suppose you have a monochrome bitmap file (160x160 pixel) with the following header:

BitMapFileHeader

Signature: BM ,Filesize: 3262 ,Data Offset: 62

InfoHeader

size of InfoHeader: 40 ,width: 160 ,height: 160 ,planes: 1 ,Bit Per Pixel: 1 ,compression: 0 ,compressed size of image: 3200 ,XpiexelsPerM: 3780 ,YpiexelsPerM: 3780 ,Color Used: 0

Write a C program to generate a bitmap file following below:

image