3 #define ULONG unsigned int
4 #define UBYTE unsigned char
15 char BmpNamePath[255];
16 getcwd(BmpNamePath,250);
18 snprintf(BmpNameBuf,255,
"bitmap.rgf");
19 pFile = fopen (BmpNameBuf,
"wb");
22 FileSize =
sizeof(bitmap_bits);
23 Header[0] = bitmap_width;
24 Header[1] = bitmap_height;
25 fwrite (Header,1,2,pFile);
26 fwrite (bitmap_bits,1,FileSize,pFile);
31 printf(
"\r\nBitmap file not created !!!!!\r\n");
unsigned int ULONG
Basic Type used to symbolise 32 bit unsigned values.
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.