dvi2bitmap  dvi2bitmap1.0
Public Member Functions | Static Public Member Functions | List of all members
PkRasterdata Class Reference

#include <PkFont.h>

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. More...
 
const Bytebitmap ()
 Returns the bitmap corresponding to the input rasterdata. More...
 

Static Public Member Functions

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

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
opcodethe character code of this glyph
rasterdatathe rastered glyph, in the format described in the PK file documentation
lenthe number of bytes in the rasterdata stream
wthe width of the resulting bitmap
hthe 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]

Referenced by PkGlyph::bitmap().

static verbosities PkRasterdata::verbosity ( const verbosities  level)
inlinestatic

Sets the verbosity of this module.

Parameters
levelthe required verbosity
Returns
the previous verbosity level

Referenced by main().


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