1
/*********************************************************
4
* Title: Graphics Interchange Format header
9
* This class is a thin wrapper around the open source
10
* giflib-1.4.0 for opening, parsing and displaying
11
* Compuserve GIF files on Windows.
13
* Copyright (c) 1999 CallWave, Inc.
15
* 136 W. Canon Perdido Suite A
16
* Santa Barbara, CA 93101
18
* Licensed under the terms laid out in the libungif
21
*********************************************************/
26
#include <commctrl.h> // For LPCOLORMAP
28
typedef struct GifFileType GifFileType; // Opaque to avoid namespace collisions
30
// Fixed length struct to allocate 256-color BITMAPINFO
31
// (to avoid dynamic allocation)
32
typedef struct tagbmi256
38
// Win32 Class for wrapping libgif functionality
42
GifFileType* m_pGifFile;
46
COLORREF m_rgbTransparent;
47
COLORREF m_rgbBackgnd;
49
UINT m_uLoopCount; // Netscape 2.0 loop count
51
// Constructor/destructor
55
int Open(LPCTSTR pszFileName, COLORREF rgbBack = RGB(255,255,255));
57
int Draw(HDC hDC, LPCRECT pRect, int iFactor = 0);
59
UINT GetLoopCount() const
60
{ return m_uLoopCount; }
61
HBITMAP CreateMappedBitmap(LPCOLORMAP pMap, UINT uCount, int iScale = 1);
63
// Get image size (in pixels)
68
#endif // __GIFWIN_H__