The PSDFileMeta object contains meta data about the psd file, such header information, the number of layers, etc...
This is a self managed class, where it's data will be filled on PSDOpen().
#include <LibPSD.h>
Classes |
|
| class | ThumbnailResource |
| struct | VersionInfo |
Public Member Functions |
|
| PSDFileMeta () | |
| ~PSDFileMeta () | |
| float | GetXResolution () const |
| void | SetXResolution (float xres) |
| float | GetYResolution () const |
| void | SetYResolution (float yres) |
| unsigned short | GetResUnit () const |
| void | SetResUnit (unsigned short resUnit) |
| bool | SetFileHeaderStruct (unsigned int inWidth, unsigned int inHeight, unsigned short inColorDepth, unsigned short inChannels) |
| unsigned int | GetNbLayers () const |
| void | SetNbLayers (unsigned int nbLayers) |
| bool | SetColorModeData (unsigned char *colorModeData, unsigned int colorModeDataSize) |
| bool | LayerStateValid () const |
| unsigned short | GetLayerState () const |
| void | SetLayerState (unsigned short layerState) |
| void | Synch () |
Public Attributes |
|
| PSD_FILE_HEADER | m_hdr |
| VersionInfo | m_vi |
| ThumbnailResource * | m_pThumbnail |
| unsigned int | m_numLayers |
| std::vector< IMAGERESOURCES * > | m_vImageRes |
Friends |
|
| class | PSDFile |
| PSDFileMeta | ( | ) |
| ~PSDFileMeta | ( | ) |
| float GetXResolution | ( | ) | const |
| void SetXResolution | ( | float | xres | ) |
| float GetYResolution | ( | ) | const |
| void SetYResolution | ( | float | yres | ) |
| unsigned short GetResUnit | ( | ) | const |
| void SetResUnit | ( | unsigned short | resUnit | ) |
| bool SetFileHeaderStruct | ( | unsigned int | inWidth, |
| unsigned int | inHeight, | ||
| unsigned short | inColorDepth, | ||
| unsigned short | inChannels | ||
| ) |
| unsigned int GetNbLayers | ( | ) | const [inline] |
| void SetNbLayers | ( | unsigned int | nbLayers | ) | [inline] |
| bool SetColorModeData | ( | unsigned char * | colorModeData, |
| unsigned int | colorModeDataSize | ||
| ) |
| bool LayerStateValid | ( | ) | const [inline] |
| unsigned short GetLayerState | ( | ) | const [inline] |
| void SetLayerState | ( | unsigned short | layerState | ) |
| void Synch | ( | ) |
friend class PSDFile [friend] |
| VersionInfo m_vi |
| ThumbnailResource* m_pThumbnail |
| unsigned int m_numLayers |
| std::vector<IMAGERESOURCES*> m_vImageRes |