Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 317 -
Function Reference
~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------------------
1. Draw a standard size character. <Main>
------------------------------------------------------------------------------
[Name]
gr_displaychar
[Syntax]
#include <graph.h>
void gr_displaychar( int code, short cx, short cy,
short fg, short bg ) ;
[Arguments]
code Character code to be drawn.
cx, cy Coordinate of the left-upper corner at where the
character is drawn.
fg Character color.
bg Background color.
[Return]
------
[Description]
Draws the specified character whose size is same as the text's one
(i.e. 8 x 16 or 16 x 25 dots, 16 x 16 or 32 x 25 dots for Kanji
character) on the graphic screen.
Specify the character color and the background color using palette
index number. Only character is drawn if -32768 (0x8000) is specified
as the background color.
[Remarks]
In the small-character mode of 9-inch CRT, displayable characters
are limited. In this mode, only 128 characters whose codes are
0x20-0x5F, 0xA0-0xDF can be displayed. The lowercase characters are
converted into the uppercase characters.