#include <gmlsimpleimage.h>
Inheritance diagram for SimpleImage:
Public Member Functions | |
SimpleImage () | |
Creates an empty bitmap. | |
virtual | ~SimpleImage () |
Destroys the bitmap. | |
SimpleImage (const Image &Orig) | |
Copy constructor. | |
SimpleImage (const SimpleImage &Orig) | |
Copy constructor. | |
SimpleImage & | operator= (const Image &Orig) |
Assignment operator. | |
SimpleImage & | operator= (const SimpleImage &Orig) |
long | GetMemUsed () |
Returns the amount of memory used by the object. | |
long | GetBytesPerLine () const |
Returns number of bytes used per line. | |
const BYTE * | GetRawData () const |
BYTE * | GetRawData () |
Access to raw data array. Dangerous function! Use with care. | |
virtual int | GetRawDataSize () const |
virtual gml::DrawSurface * | GetDrawSurface () |
Draw surface. | |
Static Public Member Functions | |
long | GetMemNeeded (int width, int height, FORMAT f, REPRES r) |
Returns memory needed by a bitmap with the specified attributes. | |
long | GetBitsMemNeeded (int width, int height, FORMAT f, REPRES r) |
Returns memory needed by bitmap bits. | |
Protected Member Functions | |
virtual void | ConstructorInitLocals () |
virtual bool | InternalCreate (int Width, int Height, FORMAT format, REPRES repres, ORIENT orient=O_BOTTOMLEFT) |
virtual void | FreeMembers () |
Delete memory allocated by member variables. | |
virtual void | InitLineArray () |
Initialize internal table of line addresses. | |
virtual void | InternalChangeOrientation (ORIENT new_orient) |
Protected Attributes | |
BYTE * | m_pBits |
Pointer to the bits. |
The data is stored sequentially without padding in the bitmap. The class implements exactly the interface defined by gml::Image without additions.
|
Create a new bitmap with uninitialized bits. (Assume no memory is allocated yet.) Implements Image. |
|
Change image orientation to given state
Implements Image. |