?? 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_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -