#include <pldirectfbbmp.h>
Inheritance diagram for PLDirectFBBmp:
Public Member Functions | |
PLDirectFBBmp () | |
virtual | ~PLDirectFBBmp () |
Destroys the bitmap. | |
PLDirectFBBmp (const PLBmp &Orig) | |
Copy constructor. | |
PLDirectFBBmp (const PLDirectFBBmp &Orig) | |
Copy constructor. | |
PLDirectFBBmp & | operator= (const PLBmp &Orig) |
Assignment operator. | |
PLDirectFBBmp & | operator= (const PLDirectFBBmp &Orig) |
Assignment operator. | |
IDirectFBSurface * | 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 | |
void | SetDirectFB (IDirectFB *pDirectFB) |
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. |
Definition at line 23 of file pldirectfbbmp.h.
|
Creates an empty bitmap object. The Create() function allocates a DirectFB system memory surface for this bitmap. Note that only system memory surfaces are supported at the moment. |
|
Returns a pointer to the internal DirectFB surface. The surface is still owned by the bitmap object. Using this pointer, you can bring DirectFB and paintlib data out of sync easily. Handle with care. |
|
Create a new bitmap with uninitialized bits. (Assume no memory is allocated yet.) Implements PLBmp. |
|
Sets a pointer to the main DirectFB interface. This needs to be done before any PLDirectFBBmps get allocated. |