Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

BitmapImage Class Reference

#include <BitmapImage.h>

Inheritance diagram for BitmapImage:

GIFBitmap PNGBitmap XBMBitmap XPMBitmap List of all members.

Public Types

enum  infoFields { SOFTWAREVERSION, INPUTFILENAME, FURTHERINFO }

Public Member Functions

 BitmapImage (const int w, const int h, const int bpp=1)
virtual ~BitmapImage ()
void setBitmap (const Byte *B)
void setBitmapRow (const Byte *B)
void setTransparent (const bool sw)
void setRGB (const bool fg, const Bitmap::BitmapColour *rgb)
virtual void write (const string filename)=0
virtual string fileExtension () const =0

Static Public Member Functions

void setInfo (const infoFields which, const string *s)
BitmapImagenewBitmapImage (const string format, const int w, const int h, const int bpp=1)
bool supportedBitmapImage (const string format)
const char * firstBitmapImageFormat ()
const char * nextBitmapImageFormat ()
void verbosity (const verbosities level)

Protected Attributes

int w_
int h_
const int bpp_
const Bytebitmap_
ByteallocBitmap_
bool myBitmap_
int bitmapRows_
bool isTransparent_
Bitmap::BitmapColour fg_
Bitmap::BitmapColour bg_

Static Protected Attributes

const string * softwareversion = 0
const string * inputfilename = 0
const string * furtherinfo = 0
const char * formats []
const int nformats = sizeof(formats)/sizeof(formats[0])
int iterator_index = 0
verbosities verbosity_ = normal

Member Enumeration Documentation

enum BitmapImage::infoFields
 

Enumeration values:
SOFTWAREVERSION 
INPUTFILENAME 
FURTHERINFO 


Constructor & Destructor Documentation

BitmapImage::BitmapImage const int  w,
const int  h,
const int  bpp = 1
 

BitmapImage::~BitmapImage  )  [virtual]
 


Member Function Documentation

virtual string BitmapImage::fileExtension  )  const [pure virtual]
 

Implemented in GIFBitmap, PNGBitmap, XBMBitmap, and XPMBitmap.

const char * BitmapImage::firstBitmapImageFormat  )  [static]
 

BitmapImage * BitmapImage::newBitmapImage const string  format,
const int  w,
const int  h,
const int  bpp = 1
[static]
 

const char * BitmapImage::nextBitmapImageFormat  )  [static]
 

void BitmapImage::setBitmap const Byte B  ) 
 

Reimplemented in GIFBitmap, XBMBitmap, and XPMBitmap.

void BitmapImage::setBitmapRow const Byte B  ) 
 

Reimplemented in GIFBitmap, XBMBitmap, and XPMBitmap.

void BitmapImage::setInfo const infoFields  which,
const string *  s
[static]
 

void BitmapImage::setRGB const bool  fg,
const Bitmap::BitmapColour rgb
[inline]
 

void BitmapImage::setTransparent const bool  sw  )  [inline]
 

Reimplemented in XBMBitmap, and XPMBitmap.

bool BitmapImage::supportedBitmapImage const string  format  )  [static]
 

void BitmapImage::verbosity const verbosities  level  )  [inline, static]
 

virtual void BitmapImage::write const string  filename  )  [pure virtual]
 

Implemented in GIFBitmap, PNGBitmap, XBMBitmap, and XPMBitmap.


Member Data Documentation

Byte* BitmapImage::allocBitmap_ [protected]
 

Bitmap::BitmapColour BitmapImage::bg_ [protected]
 

const Byte* BitmapImage::bitmap_ [protected]
 

int BitmapImage::bitmapRows_ [protected]
 

const int BitmapImage::bpp_ [protected]
 

Bitmap::BitmapColour BitmapImage::fg_ [protected]
 

const char * BitmapImage::formats [static, protected]
 

Initial value:

{ "png", "gif", "xbm", "xpm", }

const string * BitmapImage::furtherinfo = 0 [static, protected]
 

int BitmapImage::h_ [protected]
 

const string * BitmapImage::inputfilename = 0 [static, protected]
 

bool BitmapImage::isTransparent_ [protected]
 

int BitmapImage::iterator_index = 0 [static, protected]
 

bool BitmapImage::myBitmap_ [protected]
 

const int BitmapImage::nformats = sizeof(formats)/sizeof(formats[0]) [static, protected]
 

const string * BitmapImage::softwareversion = 0 [static, protected]
 

verbosities BitmapImage::verbosity_ = normal [static, protected]
 

int BitmapImage::w_ [protected]
 


The documentation for this class was generated from the following files:
Generated on Sun Aug 21 18:21:04 2005 for dvi2bitmap by doxygen 1.3.8