|
Binary Image Library
|
Macros | |
| #define | clamp(x, low, high) ( (x) < (low) ? (low) : (x) > (high) ? (high) : (x) ) |
Functions | |
| int | cgafont_paste (unsigned char *binary, int width, int height, int x, int y, int ch) |
| int | pcfont_paste (unsigned char *binary, int width, int height, int x, int y, int ch) |
| int | cgafont_putch (unsigned char *binary, int chwidth, int chheight, int cx, int cy, int ch) |
| int | pcfont_putch (unsigned char *binary, int chwidth, int chheight, int cx, int cy, int ch) |
Code for a PC-like font.
Use to quickly build up raster displays.
| int cgafont_paste | ( | unsigned char * | binary, |
| int | width, | ||
| int | height, | ||
| int | x, | ||
| int | y, | ||
| int | ch | ||
| ) |
Write a character to the binary buffer using 8x8 font
| [in,out] | binary | - the buffer |
| width | - bufffer width | |
| height | - buffer height | |
| x | - pixel x position (left) | |
| y | - pixel y position (top) | |
| ch | - character to write |
| int cgafont_putch | ( | unsigned char * | binary, |
| int | chwidth, | ||
| int | chheight, | ||
| int | cx, | ||
| int | cy, | ||
| int | ch | ||
| ) |
Write a character to the binary buffer using 8x8 font
| [in,out] | binary | - the buffer |
| width | - bufffer width | |
| height | - buffer height | |
| x | - character x position (left) | |
| y | - character y position (top) | |
| ch | - character to write |
| int pcfont_paste | ( | unsigned char * | binary, |
| int | width, | ||
| int | height, | ||
| int | x, | ||
| int | y, | ||
| int | ch | ||
| ) |
Write a character to the binary buffer, using 8x19 font
| [in,out] | binary | - the buffer |
| width | - bufffer width | |
| height | - buffer height | |
| x | - pixel x position (left) | |
| y | - pixel y position (top) | |
| ch | - character to write |
| int pcfont_putch | ( | unsigned char * | binary, |
| int | chwidth, | ||
| int | chheight, | ||
| int | cx, | ||
| int | cy, | ||
| int | ch | ||
| ) |
Write a character to the binary buffer using 8x19 font
| [in,out] | binary | - the buffer |
| width | - bufffer width | |
| height | - buffer height | |
| x | - character x position (left) | |
| y | - character y position (top) | |
| ch | - character to write |
1.8.11