PSDFileMeta Class Reference

PSDFileMeta Class Reference

#include <LibPSD.h>

Class Description

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().

Definition at line 312 of file LibPSD.h.

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
 

Constructor & Destructor Documentation

Member Function Documentation

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

Definition at line 383 of file LibPSD.h.

383 { return m_numLayers; }
unsigned int m_numLayers
Definition: LibPSD.h:401
void SetNbLayers ( unsigned int  nbLayers)
inline

Definition at line 384 of file LibPSD.h.

384 { m_numLayers = nbLayers; }
unsigned int m_numLayers
Definition: LibPSD.h:401
bool SetColorModeData ( unsigned char *  colorModeData,
unsigned int  colorModeDataSize 
)
bool LayerStateValid ( ) const
inline

Definition at line 391 of file LibPSD.h.

391 { return m_pLayerState != 0; }
unsigned short GetLayerState ( ) const
inline

Definition at line 392 of file LibPSD.h.

392 { return m_pLayerState->state; }
unsigned short state
Definition: LibPSD.h:139
void SetLayerState ( unsigned short  layerState)
void Synch ( )

Friends And Related Function Documentation

friend class PSDFile
friend

Definition at line 314 of file LibPSD.h.

Member Data Documentation

Definition at line 398 of file LibPSD.h.

VersionInfo m_vi

Definition at line 399 of file LibPSD.h.

ThumbnailResource* m_pThumbnail

Definition at line 400 of file LibPSD.h.

unsigned int m_numLayers

Definition at line 401 of file LibPSD.h.

std::vector<IMAGERESOURCES*> m_vImageRes

Definition at line 403 of file LibPSD.h.


The documentation for this class was generated from the following file: