  Well, mygraph is REAL easy to use. Basically, the image functions work the
same way as pascals, using the same image format. After loading an image
using getimage, you can put the image on the screen using img_$$$$ where
$$$$ is the method (such as matte, copy, or xor). Likewise you can paste it
to the virtual screen (also referred to as the 'canvas') by calling the
function as img_v$$$$.

examples:

  img_vmatte(0,0,my_pic);     mattes image stored at address in pointer
                              'my_pic' to virtual screen at 0,0.
  img_xor(100,100,my_pic);    xors image stored at address in pointer
                              'my_pic' to actual screen at 100,100.

fix_area copies a region from the virtual screen to the actual screen, in
a rectangle defined by the parameters:

fix_area(0,0,159,99);           copies the upper left quadrant of the
                                virtual screen to the actual screen

save_area(0,0,159,99);          copies the upper left quadrant of the
                                actual screen to the virtual screen

  color_type is an array of 0..255 of red green and blue for the palette.
'color' is such a type already defined. Simply set color[i].red,
color[i].green and color[i].blue each to any shade from 0 to 63, where i
is the color of the palette you want changed, and the execuete
setall(@color); (setall takes a pointer to a color_type, so the @ symbol
in front of the identifier returns the address of the item instead of the
item itself).

That's the basics, good luck!


 