The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

dvi2bitmap  dvi2bitmap1.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BitmapImage Class Referenceabstract

The superclass of the various bitmap formats. More...

#include <BitmapImage.h>

Inheritance diagram for BitmapImage:
GIFBitmap PNGBitmap XBMBitmap XPMBitmap

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

static void setInfo (const infoFields which, const string *s)
 
static BitmapImagenewBitmapImage (const string format, const int w, const int h, const int bpp=1)
 
static bool supportedBitmapImage (const string format)
 
static const char * firstBitmapImageFormat ()
 
static const char * nextBitmapImageFormat ()
 
static 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

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

Detailed Description

The superclass of the various bitmap formats.

Member Enumeration Documentation

Enumerator
SOFTWAREVERSION 
INPUTFILENAME 
FURTHERINFO 

Constructor & Destructor Documentation

BitmapImage::BitmapImage ( const int  w,
const int  h,
const int  bpp = 1 
)
BitmapImage::~BitmapImage ( )
virtual

References allocBitmap_, and myBitmap_.

Member Function Documentation

virtual string BitmapImage::fileExtension ( ) const
pure virtual

Implemented in GIFBitmap, PNGBitmap, XPMBitmap, and XBMBitmap.

Referenced by Bitmap::write().

const char * BitmapImage::firstBitmapImageFormat ( )
static

References formats, and iterator_index.

Referenced by main(), and Bitmap::write().

BitmapImage * BitmapImage::newBitmapImage ( const string  format,
const int  w,
const int  h,
const int  bpp = 1 
)
static

Referenced by Bitmap::write().

const char * BitmapImage::nextBitmapImageFormat ( )
static

References formats, iterator_index, and nformats.

Referenced by main().

void BitmapImage::setBitmap ( const Byte B)

References bitmap_, bitmapRows_, and h_.

Referenced by Bitmap::write().

void BitmapImage::setBitmapRow ( const Byte B)

References allocBitmap_, bitmap_, bitmapRows_, h_, myBitmap_, and w_.

Referenced by Bitmap::write().

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

References isTransparent_.

Referenced by Bitmap::write().

bool BitmapImage::supportedBitmapImage ( const string  format)
static

References formats, and nformats.

Referenced by main().

static void BitmapImage::verbosity ( const verbosities  level)
inlinestatic

References verbosity_.

Referenced by main().

virtual void BitmapImage::write ( const string  filename)
pure virtual

Implemented in GIFBitmap, PNGBitmap, XPMBitmap, and XBMBitmap.

Referenced by Bitmap::write().

Member Data Documentation

Byte* BitmapImage::allocBitmap_
protected

Referenced by setBitmapRow(), and ~BitmapImage().

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
staticprotected
Initial value:
= {
"png",
"gif",
"xbm",
"xpm",
}

Referenced by firstBitmapImageFormat(), nextBitmapImageFormat(), and supportedBitmapImage().

const string * BitmapImage::furtherinfo = 0
staticprotected

Referenced by setInfo(), and PNGBitmap::write().

int BitmapImage::h_
protected
const string * BitmapImage::inputfilename = 0
staticprotected

Referenced by setInfo(), and PNGBitmap::write().

bool BitmapImage::isTransparent_
protected
int BitmapImage::iterator_index = 0
staticprotected
bool BitmapImage::myBitmap_
protected

Referenced by setBitmapRow(), and ~BitmapImage().

const int BitmapImage::nformats = sizeof(formats)/sizeof(formats[0])
staticprotected
const string * BitmapImage::softwareversion = 0
staticprotected

Referenced by setInfo(), and PNGBitmap::write().

verbosities BitmapImage::verbosity_ = normal
staticprotected
int BitmapImage::w_
protected

The documentation for this class was generated from the following files:

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.