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

TBitmap Class Reference

#include <bitmap.h>

List of all members.

Public Methods

 TBitmap ()
 TBitmap (string sFileName)
 ~TBitmap ()
void Clear ()
void ConvertToGrayScale ()
bool Empty () const
uint2 GetHeight () const
tRGBColor GetPixel (int2 x, int2 y) const
uint2 GetWidth () const
void Invert ()
bool Load (string sFileName)
bool LoadBMP (string sFileName)
void SetAllPixels (tRGBColor Color)
void SetAllPixels (uint2 uGray=0)

Private Methods

bool AllocateMemoryForBitmap ()
void DeleteBitmap ()
void Reset ()
void WriteBMPHeaderToLog (const tBMPHeader Header) const

Private Attributes

tRGBColor ** Bitmap
uint2 uWidth
uint2 uHeight


Detailed Description

WARNING: this class need to be completly rewritten! Use a byte matrix and add the needed methods Don't offer a method for loading bitmaps, this is part of the UI

Description: A simple and (at the moment) incomplete class, managing a bitmap <PENDING> Right now only special bitmaps can be loaded: 256 colors and only Windows BMP?! Don't know ... this is not the final version!!!


The documentation for this class was generated from the following file:
Generated on Thu Jun 20 18:13:18 2002 for Stellar Legacy by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001