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

PkRasterdata Class Reference

#include <PkFont.h>

List of all members.

Public Member Functions

 PkRasterdata (Byte opcode, const Byte *rasterdata, unsigned int len, unsigned int w, unsigned int h)
 Creates a Rasterdata object representing the provided data.
const Bytebitmap ()
 Returns the bitmap corresponding to the input rasterdata.

Static Public Member Functions

verbosities verbosity (const verbosities level)
 Sets the verbosity of this module.


Constructor & Destructor Documentation

PkRasterdata::PkRasterdata Byte  opcode,
const Byte rasterdata,
unsigned int  len,
unsigned int  w,
unsigned int  h
 

Creates a Rasterdata object representing the provided data.

The raster data read from the PK file needs to be decoded into a bitmap, and this is the function of this class.

Parameters:
opcode the character code of this glyph
rasterdata the rastered glyph, in the format described in the PK file documentation
len the number of bytes in the rasterdata stream
w the width of the resulting bitmap
h the number of rows in the resulting bitmap


Member Function Documentation

const Byte* PkRasterdata::bitmap  )  [inline]
 

Returns the bitmap corresponding to the input rasterdata.

Returns:
the bitmap, as an array of size [0..w-1][0..h-1]

verbosities PkRasterdata::verbosity const verbosities  level  )  [inline, static]
 

Sets the verbosity of this module.

Parameters:
level the required verbosity
Returns:
the previous verbosity level


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