Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

PLPSDDecoder Class Reference

#include <plpsddec.h>

Inheritance diagram for PLPSDDecoder:

PLPicDecoder PLBmpInfo List of all members.

Public Member Functions

 PLPSDDecoder ()
 Creates a decoder.

virtual ~PLPSDDecoder ()
 Destroys a decoder.

virtual void Open (PLDataSource *pDataSrc)
virtual void GetImage (PLBmp &pBmp)
int GetNumLayers ()
 Returns number of layers in the image.

void GetNextLayer (PLBmp &Bmp)
 Fills the bitmap with the layer data.

PLPoint GetLayerOffset ()
 Returns the origin of the layer data in the image.


Detailed Description

Photoshop file decoder. Besides having the MakeBmpFromFile interface that the other decoders have, the photoshop decoder loads the layers of the image into separate bitmaps so they can be manipulated separately:
vector<PLAnyBmp> Bmp; PLAnyBmp BaseBmp); Decoder->OpenFile ("face.psd"); int NumLayers = Decoder->GetNumLayers(); for (int i=0; i<NumLayers; i++) { GetNextLayer (Bmp[i]); LayerOffset = GetLayerOffset(); } GetImage (&BaseBmp); Close();

Definition at line 53 of file plpsddec.h.


Member Function Documentation

virtual void PLPSDDecoder::GetImage PLBmp pBmp  )  [virtual]
 

Fills the bitmap with the main image. This image is a flattened version of the layers.

Implements PLPicDecoder.


The documentation for this class was generated from the following file:
Generated on Sun Jun 6 13:42:23 2004 for paintlib by doxygen 1.3.2