#include <bitmap.h>
Inheritance diagram for OriginalBitmapRef:
Public Member Functions | |
OriginalBitmapRef (BitmapSource *pSource=NULL, BaseBitmapFilter *pImportFilter=NULL) | |
Constructor for a reference to the original (usually compressed) bitmap that was used to create the bitmap containing this reference. | |
~OriginalBitmapRef () | |
Destructor for a reference to the original bitmap. THIS WILL FREE UP THE ORIGINAL FILE BUFFER. | |
void | SetOriginalSource (BitmapSource *pSource=NULL, BaseBitmapFilter *pImportFilter=NULL) |
Sets the original bitmap file associated with this reference. | |
BOOL | GetOriginalSource (BitmapSource **ppSource=NULL, BaseBitmapFilter **ppImportFilter=NULL) |
Gets the original bitmap file buffer associated with this reference. | |
Protected Attributes | |
BitmapSource * | m_pBitmapSource |
BaseBitmapFilter * | m_pBitmapFilter |
Definition at line 184 of file bitmap.h.
|
Constructor for a reference to the original (usually compressed) bitmap that was used to create the bitmap containing this reference.
Definition at line 172 of file bitmap.cpp. 00173 { 00174 m_pBitmapSource = pSource; 00175 m_pBitmapFilter = pImportFilter; 00176 }
|
|
Destructor for a reference to the original bitmap. THIS WILL FREE UP THE ORIGINAL FILE BUFFER.
Definition at line 192 of file bitmap.cpp. 00193 { 00194 if (m_pBitmapSource) 00195 { 00196 // Free up the original bitmap buffer 00197 delete m_pBitmapSource; 00198 } 00199 }
|
|
Gets the original bitmap file buffer associated with this reference.
Definition at line 257 of file bitmap.cpp. 00258 { 00259 if (pSource == NULL && ppImportFilter == NULL) 00260 { 00261 // Just return whether a file is available or not, without setting the pointers 00262 return m_pBitmapSource != NULL; 00263 } 00264 00265 if (m_pBitmapSource != NULL) 00266 { 00267 // Set the pointers 00268 *pSource = m_pBitmapSource; 00269 *ppImportFilter = m_pBitmapFilter; 00270 00271 return TRUE; 00272 } 00273 00274 // No original file available 00275 return FALSE; 00276 }
|
|
Sets the original bitmap file associated with this reference.
Definition at line 219 of file bitmap.cpp. 00220 { 00221 if (m_pBitmapSource) 00222 { 00223 // Free up the original bitmap buffer 00224 delete m_pBitmapSource; 00225 } 00226 00227 m_pBitmapSource = pSource; 00228 m_pBitmapFilter = pImportFilter; 00229 }
|
|
|
|
|