⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bmpio.h

📁 傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。
💻 H
字号:
#ifndef BMPIO_H
#define BMPIO_H

#ifdef __cplusplus
extern "C" {
#endif

#include <crblib/inc.h>

#define MBTYPE_8BIT_PAL		0
#define MBTYPE_8BIT_GRAY	1
#define MBTYPE_24BIT_RGB	2

typedef struct 
{
	int width,height,type,dataBytes,ncolors;
	ubyte * palette;
	ubyte * data;
} myBMP;

extern void freeBMP(myBMP * mb);

// loadImage will try to detect the image type

extern myBMP * loadImage(char *name);

extern bool saveBMP(myBMP *mybm,char *name);
extern myBMP * loadBMP(char *name);

extern bool saveRAW(myBMP *mybm,char *name);
extern myBMP * loadRAW(char *name);

//	save & load will do this for you, but you may want to do it
//		yourself (for example, to CreateDIBitmap)

extern void swapBGRtoRGB(ubyte *ptr,int len);

#ifdef __cplusplus
}
#endif

#endif // BMPIO_H

⌨️ 快捷键说明

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