percentwei / Create_bitmap

NCNU C++ course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

NCNU C++ course

License:MIT License


Languages

Language:C++ 100.0%