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

PLBmpInfo Class Reference

#include <plbmpinfo.h>

Inheritance diagram for PLBmpInfo:

PLBmpBase PLPicDecoder PLBmp PLSubBmp PLAnyPicDecoder PLBmpDecoder PLGIFDecoder PLIFF85Decoder PLJPEGDecoder PLPCXDecoder PLPGMDecoder PLPictDecoder PLPNGDecoder PLPPMDecoder PLPSDDecoder PLSGIDecoder PLTGADecoder PLTIFFDecoder List of all members.

Public Member Functions

 PLBmpInfo (const PLPoint &Size, const PLPoint &Resolution, const PLPixelFormat &pf)
 Creates an info object.

 PLBmpInfo ()
 Creates an uninitialized info object.

 PLBmpInfo (const char *pszInfo)
const PLPointGetSize () const
int GetWidth () const
int GetHeight () const
unsigned GetBitsPerPixel () const
bool HasAlpha () const
bool IsGreyscale () const
const PLPixelFormat & GetPixelFormat () const
const PLPointGetResolution () const
void AsString (char *psz, int len) const
bool operator== (const PLBmpInfo &Other) const

Protected Member Functions

void SetBmpInfo (const PLPoint &Size, const PLPoint &Resolution, const PLPixelFormat &pf)
void SetBmpInfo (const PLBmpInfo &SrcInfo)

Protected Attributes

PLPoint m_Size
PLPoint m_Resolution
PLPixelFormat m_pf

Detailed Description

This is a simple base class that holds bitmap metainformation. It is used as a base class by PLPicDecoder and PLBmp and can be used standalone as well.

Definition at line 21 of file plbmpinfo.h.


Constructor & Destructor Documentation

PLBmpInfo::PLBmpInfo const char *  pszInfo  ) 
 

Creates an info object from an ascii representation. This ascii representation can be created using AsString();


Member Function Documentation

const PLPoint& PLBmpInfo::GetResolution  )  const [inline]
 

Gets the bitmap resolution in pixels per inch. Returns 0 if the resolution is unknown.

Definition at line 69 of file plbmpinfo.h.


The documentation for this class was generated from the following file:
Generated on Mon Sep 13 16:16:41 2004 for paintlib by doxygen 1.3.2