
------------------------------------------------------------------------------
4. Put monochrome image data. <Main>
------------------------------------------------------------------------------
[Name]
_putpattern
[Syntax]
#include <graph.h>
void _putpattern( short x, short y, void *image, short action,
short fg, short bg ) ;
[Arguments]
x, y Coordinate of the left-upper corner at where the
monochrome image is put.
image Buffer in where monochrome image is stored.
action Logical writing mode.
fg Foreground color.
bg Background color.
[Return]
------
[Description]
Puts the monochrome image pattern stored in "image" in the rectangle
regtion whose left-upper corner is "x,y" on the graphic screen.
Specify the logical writing mode, monochrome image data in buffer and
image data on the screen are operated according to this command, in
"action". The logical writing mode is defined in "graph.h".
Specify the character color and the background color using palette
index number. Only image data is drawn if -32768 (0x8000) is
specified as the background color.
The image buffer size must be specified by word (2-byte) unit.
The buffer size (for monochrome image data) 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.