📄 tga.h
字号:
#if !defined(TGA_H_)
#define TGA_H_
#define TGA_ERROR_FILE_OPEN -5
#define TGA_ERROR_READING_FILE -4
#define TGA_ERROR_INDEXED_COLOR -3
#define TGA_ERROR_MEMORY -2
#define TGA_ERROR_COMPRESSED_FILE -1
#define TGA_OK 0
typedef struct {
int status;
unsigned char type, pixelDepth;
short int width, height;
unsigned char *imageData;
}tgaInfo;
tgaInfo* tgaLoad(char *filename);
int tgaSave(char *filename,
short int width,
short int height,
unsigned char pixelDepth,
unsigned char *imageData);
int tgaSaveSeries(char *filename,
short int width,
short int height,
unsigned char pixelDepth,
unsigned char *imageData);
void tgaRGBtoGreyscale(tgaInfo *info);
int tgaGrabScreenSeries(char *filename, int x,int y, int w, int h);
void tgaDestroy(tgaInfo *info);
#endif // !defined(TGA_H_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -