PROGRAM : To get the Number of bits per pixel of a bitmap. AUTHOR : Tanmay Roy. - M.
Tech(Embedded Sys & VLSI) (Kolkata,INDIA) DATE : 20-May-2011 COMPILER: Visual Studio 6 REMARKS : It's done at very simple way, It works fine. This can be done at Turbo C also. But few modification neesed.
E-MAIL : tanmay. Roy8@gmail. Com //************************************** FILE *fp; int bitPerPixel BITMAPFILEHEADER bfh; BITMAPINFOHEADER bih; fp = fopen("C:\\MYPIC.
BMP","rb"); // The picture whose 'bit per pixel' to get. If(fp == NULL) { AfxMessageBox("ERROR: file open err"); return(-1); } fread(&bfh,sizeof(BITMAPFILEHEADER),1,fp); // Read Bitmap File Header fread(&bih,sizeof(BITMAPINFOHEADER),1,fp); // Read Bitmap Info Header /* BITMAPFILEHEADER,BITMAPINFOHEADER are inbulit data type in VC++,MFC */ bitPerPixel = bih. BiBitCount; fclose(fp).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.