#include <gifutil.h>
Public Member Functions | |
Palette () | |
~Palette () | |
BOOL | SetSize (const UINT32 nSize) |
BOOL | IsConstructedOK () const |
const PaletteIterator & | Start () const |
const PaletteIterator & | End () const |
Protected Member Functions | |
Palette (const Palette &otherPalette) | |
Protected Attributes | |
LPRGBQUAD | m_pColours |
UINT32 | m_nSize |
PaletteIterator | m_StartIterator |
PaletteIterator | m_EndIterator |
Private Member Functions | |
CC_DECLARE_MEMDUMP (Palette) | |
Private Attributes | |
BOOL | m_bInitOK |
Definition at line 181 of file gifutil.h.
|
Definition at line 186 of file gifutil.h. 00186 : m_pColours(NULL), m_nSize(0) {}
|
|
Definition at line 27 of file gifutil.cpp. 00028 { 00029 if (m_pColours) 00030 delete [] m_pColours; 00031 m_pColours = NULL; // ensure state correct 00032 m_nSize = 0; 00033 }
|
|
Definition at line 37 of file gifutil.cpp. 00038 { 00039 if (&otherPalette == this) return; 00040 00041 if (otherPalette.m_nSize > m_nSize) 00042 delete [] m_pColours; 00043 m_pColours = new RGBQUAD[otherPalette.m_nSize]; 00044 if (m_pColours == NULL) 00045 { 00046 m_bInitOK = FALSE; 00047 return; 00048 } 00049 m_nSize = otherPalette.m_nSize; 00050 memcpy(m_pColours, otherPalette.m_pColours, m_nSize); 00051 m_bInitOK = TRUE; 00052 }
|
|
|
|
Definition at line 201 of file gifutil.h. 00202 { return m_EndIterator; }
|
|
Definition at line 194 of file gifutil.h. 00195 { return m_bInitOK; }
|
|
Definition at line 1079 of file gifutil.cpp. 01080 { 01081 if (nNewSize == m_nSize) return TRUE; 01082 if (m_pColours != NULL) 01083 { 01084 delete [] m_pColours; 01085 } 01086 if (nNewSize == 0) 01087 { 01088 m_pColours = NULL; 01089 return TRUE; 01090 } 01091 m_pColours = new RGBQUAD[nNewSize]; 01092 // m_StartIterator; 01093 // m_EndIterator; 01094 return (m_pColours == NULL) ? FALSE : TRUE; 01095 }
|
|
Definition at line 198 of file gifutil.h. 00199 { return m_StartIterator; }
|
|
|
|
|
|
|
|
|
|
|