## Printer Device Driver

[prev][next][parent][TOC]

### Bit-Map Conversion Functions

The driver supports conversion between any of the standard external formats (1bpp, 4bpp, 8bpp and 24bpp) to the internal bit map format, which is 1bpp for mono and 4bpp for the 4224 Color printer. The functions GetBitmapBits, SetBitmapBits, DeviceCreateBitmap and DeviceDeleteBitmap use a nearest color mapping method, which is based on the square of the distance between the points that two colors represent in RGB space. For 1bpp target bit maps , the driver uses a threshold value of 384 for (R+G+B). Any value above this threshold maps to white and any value below maps to black.