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

PLAnyBmp Class Reference

#include <planybmp.h>

Inheritance diagram for PLAnyBmp:

PLBmp PLBmpInfo List of all members.

Public Member Functions

 PLAnyBmp ()
 Creates an empty bitmap.

virtual ~PLAnyBmp ()
 Destroys the bitmap.

 PLAnyBmp (const PLBmp &Orig)
 Copy constructor.

 PLAnyBmp (const PLAnyBmp &Orig)
 Copy constructor.

PLAnyBmpoperator= (const PLBmp &Orig)
 Assignment operator.

PLAnyBmpoperator= (const PLAnyBmp &Orig)
 Assignment operator.

long GetMemUsed ()
 Returns the amount of memory used by the object.

long GetBytesPerLine ()
 Returns number of bytes used per line.

PLBYTE * GetPixels ()
 Returns a raw pointer to the bitmap bits.

const PLBYTE * GetPixels () const
 Returns a raw pointer to the bitmap bits.

Static Public Member Functions

long GetMemNeeded (PLLONG width, PLLONG height, PLWORD BitsPerPixel)
 Returns memory needed by a bitmap with the specified attributes.

long GetBitsMemNeeded (PLLONG width, PLLONG height, PLWORD BitsPerPixel)
 Returns memory needed by bitmap bits.

Protected Member Functions

virtual void internalCreate (PLLONG Width, PLLONG Height, PLWORD BitsPerPixel, bool bAlphaChannel, bool bIsGreyscale)
virtual void freeMembers ()
 Delete memory allocated by member variables.

virtual void initLineArray ()
 Initialize internal table of line addresses.

Protected Attributes

PLBYTE * m_pBits

Detailed Description

Manipulates uncompressed device- and platform-independent bitmaps. Supported data formats are 1, 8, 24 and 32 bpp. The data is stored sequentially without padding in the bitmap. The class implements exactly the interface defined by PLBmp without additions.

Definition at line 22 of file planybmp.h.

Member Function Documentation

virtual void PLAnyBmp::internalCreate PLLONG  Width,
PLLONG  Height,
PLWORD  BitsPerPixel,
bool  bAlphaChannel,
bool  bIsGreyscale
[protected, virtual]

Create a new bitmap with uninitialized bits. (Assume no memory is allocated yet.)

Implements PLBmp.

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