PSDFileMeta Class Reference


Detailed 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.

#include <LibPSD.h>

List of all members.

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

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.

{ return m_numLayers; }
void SetNbLayers ( unsigned int  nbLayers ) [inline]

Definition at line 384 of file LibPSD.h.

{ m_numLayers = nbLayers; }
bool SetColorModeData ( unsigned char *  colorModeData,
unsigned int  colorModeDataSize 
)
bool LayerStateValid ( ) const [inline]

Definition at line 391 of file LibPSD.h.

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

Definition at line 392 of file LibPSD.h.

{ return m_pLayerState->state; }
void SetLayerState ( unsigned short  layerState )

Friends And Related Function Documentation

friend class PSDFile [friend]

Definition at line 314 of file LibPSD.h.


Member Data Documentation

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.

Definition at line 403 of file LibPSD.h.


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

PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta
PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta PSDFileMeta