crystal/bmp.h

13 lines
332 B
C

#ifndef __BMP_H__
#define __BMP_H__
#define BPP 3 /* rgb */
#define FILE_HEADER_SIZE 14
#define INFO_HEADER_SIZE 40
void generate_bitmap(unsigned char* image, int h, int w, char* file_name);
unsigned char* create_bitmap_file_header(int height, int stride);
unsigned char* create_bitmap_info_header(int height, int width);
#endif