bmpeps.h

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 55 行

H
55
字号
#ifndef __BMPEPS_H__
#define __BMPEPS_H__

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef _Packed struct bmp_file_header {
    unsigned short  type;
    unsigned long   size;
    unsigned short  reserved1;
    unsigned short  reserved2;
    unsigned long   off_bits;
} bmp_file_header;

typedef _Packed struct bmp_info_header {
    unsigned long   size;
    long            width;
    long            height;
    unsigned short  planes;
    unsigned short  bit_count;
    unsigned long   compression;
    unsigned long   size_image;
    long            x_ppm;
    long            y_ppm;
    unsigned long   clr_used;
    unsigned long   clr_important;
} bmp_info_header;

typedef struct bmp_rgb_quad {
    unsigned char   blue;
    unsigned char   green;
    unsigned char   red;
    unsigned char   reserved;
} bmp_rgb_quad;

typedef struct bmp_rgb_triplet {
    unsigned char   blue;
    unsigned char   green;
    unsigned char   red;
} bmp_rgb_triplet;

int bmeps_bmp(FILE *out, FILE *in, char *name);
int bmeps_bmp_bb(FILE *out, FILE *in, char *name);
int bmeps_bmp_wh(FILE *in, unsigned long *w, unsigned long *h);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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