Gif.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:5k
- // Gif.h: interface for the CGif class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GIF_H__3F3EB142_198E_11D3_ABDA_0000E81A9AA8__INCLUDED_)
- #define AFX_GIF_H__3F3EB142_198E_11D3_ABDA_0000E81A9AA8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //-----------start define
- #define WIDTHBYTES(bits) (((bits) + 31) / 32 * 4)
- typedef unsigned char UCHAR;
- typedef UCHAR * LPUSTR;
- typedef unsigned short int USHORT;
- #pragma pack(push,1) //该结构必须以字节对齐
- //否则sizeof在计算时可能会出现问题
- class GIFINFO
- {
- public:
- USHORT FileType;//89a or 87a
- USHORT ColorType;//1,2,4,8,16,32,64,128,256
- USHORT ColorMode;//1,2,3,4,5,6,7,8
- USHORT Width;
- USHORT Height;
- USHORT FrameCount;//