Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

SimpleImage Class Reference
[Images]

Manipulates uncompressed device- and platform-independent bitmaps. More...

#include <gmlsimpleimage.h>

Inheritance diagram for SimpleImage:

Image SmartObject List of all members.

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.

SimpleImageoperator= (const Image &Orig)
 Assignment operator.

SimpleImageoperator= (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::DrawSurfaceGetDrawSurface ()
 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.


Detailed Description

Manipulates uncompressed device- and platform-independent bitmaps.

The data is stored sequentially without padding in the bitmap. The class implements exactly the interface defined by gml::Image without additions.


Member Function Documentation

virtual bool InternalCreate int  Width,
int  Height,
FORMAT  format,
REPRES  repres,
ORIENT  orient = O_BOTTOMLEFT
[protected, virtual]
 

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

Implements Image.

virtual void InternalChangeOrientation ORIENT  new_orient  )  [protected, virtual]
 

Change image orientation to given state

Warning:
you should set m_orient variable after actual operation

Implements Image.


The documentation for this class was generated from the following file:
Generated on Tue Jan 13 21:12:06 2004 for Graphics and Media Lab CSL by doxygen 1.3.4