Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 998 -
------------------------------------------------------------------------------
2. Get text data from VRAM. <Main>
------------------------------------------------------------------------------
[Name]
crt_gettextimg
[Syntax]
#include <crt.h>
int crt_gettextimg( unsigned int y1, unsigned int len x1,
unsigned int y2, unsigned int len x2,
unsigned long *buf ) ;
[Arguments]
y1 Left,upper position of the area from where characters are
got.
x1 Left,lower position of the area from where characters are
got.
y2 Right,lower position of the area from where characters are
got.
x2 Right,upper position of the area from where characters are
got.
buf Area that characters data are stored.
[Return]
Returns zero when terminated normally, not zero when error, i.e.
specified coordinates is not correct, is occurred.
[Description]
Gets character codes, displayed on the screen, with their attribute.
This function is used with the function "crt_puttextimg" to backup or
restore the text image on the screen.
y1,x1 is top,left, y2,x2 is bottom,right position of the area from
where characters are got as follows. (The top of left side shows
raw-1, and column-1.)
+-----------------------------------+
|(1,1) Full screen |
| |
| +-------------------+ |
| |(y1,x1) | |
| | | |
| | | |
| | | |
| | (y2,x2)| |
| +-------------------+ |
| Area for getting character |
| |
| |
| (ymax,xmax)|
+-----------------------------------+
9 inch CRT: ymax=25, xmax=80
14 inch CRT: ymax=16, xmax=40
9 inch CRT: ymax=30, xmax=80 (VGA)
14 inch CRT: ymax=19, xmax=40 (VGA)