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

PLSDLBmp Class Reference

#include <plsdlbmp.h>

Inheritance diagram for PLSDLBmp:

PLBmp PLBmpInfo List of all members.

Public Member Functions

 PLSDLBmp (int SurfFlags=SDL_SWSURFACE)
 Creates an empty bitmap.

virtual ~PLSDLBmp ()
 Destroys the bitmap.

 PLSDLBmp (const PLBmp &Orig)
 Copy constructor.

 PLSDLBmp (const PLSDLBmp &Orig)
 Copy constructor.

void Attach (SDL_Surface *pSurface)
PLSDLBmpoperator= (const PLBmp &Orig)
 Assignment operator.

PLSDLBmpoperator= (const PLSDLBmp &Orig)
 Assignment operator.

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

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


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.


Detailed Description

Manipulates uncompressed bitmaps stored as SDL surfaces. 32 bpp only.

Definition at line 22 of file plsdlbmp.h.


Member Function Documentation

void PLSDLBmp::Attach SDL_Surface *  pSurface  ) 
 

Attach to an existing SDL surface. After the attach, the bitmap object besomes the owner of the surface. Any previous contents are destroyed.

SDL_Surface* PLSDLBmp::GetSurface  ) 
 

Returns a pointer to the internal SDL surface. Using this pointer, you can bring SDL and paintlib data out of sync easily. Handle with care.

virtual void PLSDLBmp::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:23 2004 for paintlib by doxygen 1.3.2