dvi2bitmap dvi2bitmap1.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

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 Byte * | bitmap ()
| 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

  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]`

Referenced by PkGlyph::bitmap().

static verbosities PkRasterdata::verbosity | ( | const verbosities | level) |  |
| inline static

Sets the verbosity of this module.

Parameters

  level | the required verbosity

Returns
  the previous verbosity level

Referenced by main().

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

- PkFont.h
- PkFont.cc