bmp.h

来自「在SOPC平台上」· C头文件 代码 · 共 24 行

H
24
字号

#ifndef _BMP_H_
#define _BMP_H_

typedef struct {            /* the structure for a bitmap. */
  short biWidth;
  short biHeight;
  short biBitCount;
  char *bicolor_palatte;
  short *data;
} bitmap_struct;

void load_bmp(char *file, bitmap_struct *b);

void fskip(FILE *fp, int num_bytes);

void draw_transparent_bitmap(bitmap_struct *bmp,int x,int y, frame_buffer_struct* frame_buffer);

void draw_bitmap( bitmap_struct *bmp,int x,int y, frame_buffer_struct* frame_buffer );

unsigned short bmp_color_convert24_16(char* color24);

#endif //_BMP_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?