Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 322 -
------------------------------------------------------------------------------
5. Get monochrome image data. <Main>
------------------------------------------------------------------------------
[Name]
_getpattern
[Syntax]
#include <graph.h>
void _getpattern( short rsx, short rsy, short rex, short rey,
void *image, short color ) ;
[Arguments]
rsx, rsy, Coordinate of the rectangle region from wher the
rex, rey monochrome image data is got.
image Buffer in where the monochrome image data is stored.
color Color to be searched.
[Return]
------
[Description]
Gets the monochrome image data, whose color is same as the specified
color palette index number, in the specified rectangle region.
And stores it in the "image".
The buffer size muse be enough big to store the image data.
The buffer size is calculated by the next equation.
Size(byte) = ([WIDTH]+15)/16*2*[HEIGHT]+4
The maximum imaga size that is available for this function is 4K
bytes.