C / graphics.h / putimage
arc, bar, bar3d, circle, cleardevice, clearviewport, closegraph, detectgraph, drawpoly, ellipse, fillellipse, fillpoly, floodfill, getarccoords, getaspectratio, getbkcolor, getcolor, getdefaultpalette, getdrivername, getfillpattern, getfillsettings, getgraphmode, getimage, getlinesettings, getmaxcolor, getmaxmode, getmaxx, getmaxy, getmodename, getmoderange, getpalette, getpalettesize, getpixel, gettextsettings, getviewsettings, getx, gety, graphdefaults, grapherrormsg, _graphfreemem, _graphgetmem, graphresult, imagesize, initgraph, installuserdriver, installuserfont, line, linerel, lineto, moverel, moveto, outtext, outtextxy, pieslice, » putimage, putpixel, rectangle, registerbgidriver, registerbgifont, restorecrtmode, sector, setactivepage, setallpalette, setaspectratio, setbkcolor, setfillpattern, setfillstyle, setgraphbufsize, setgraphmode, setlinestyle, setpalette, setrgbpalette, settextjustify, settextstyle, setusercharsize, setviewport, setvisualpage, setwritemode, textheight, textwidth,
Funcion: putimage()
Sintaxis:
void far putimage(int izquierda, int superior,    void far *imagen, int accion);

Descripcion: Esta función coloca una imagen que fue previamente guardada con la función getimage en la pantalla. La esquina superior izquierda donde será colocada la imagen está definida por los argumentos izquierda y superior. Estos argumentos representan las coordenades x e y de la esquina superior izquierda, respectivamente. El argumento *image apunta al búfer de memoria donde la imagen está guardada. La imagen se coloca en la pantalla con la acción defindia en el argumento accion. Los valores y consonantes usados por el argumento accion se describen a continuación:

Constante Valor Significado
COPY_PUT 0 Sobrescribir los píxels existentes
XOR_PUT 1 Operación OR Exclusivo con los píxels
OR_PUT 2 Operación OR Inclusivo con los píxels
AND_PUT 3 Operación AND con los píxels
NOT_PUT 4 Invertir la imagen

Ejemplo:
#include <graphics.h>
#include <conio.h>
#include <stdlib.h>
 
int main() {
   int gdriver = EGA;
   int gmodo = EGAHI;
   void *imagen;
   int imagentam;
 
/* Si has registrado los dispositivos para que formen parte de graphics.lib
** entonces usa estas sentencias:
 
   registerbgidriver( EGAVGA_driver );
   initgraph( &gdriver, &gmodo, "" );
*/
 
/* Si no, entonces has de "decir" d&oacute;nde se encuentra el dispositivo gr&aacute;fico */
 
   initgraph( &gdriver, &gmodo, "C:\\BC5\\BGI" );
 
   setfillstyle( SLASH_FILL, 5 );
   bar( 50, 50, 350, 300 );
 
   imagentam = imagesize( 50, 50, 100, 100 );
   imagen = malloc( imagentam );
   getimage( 50, 50, 100, 100, imagen );
 
   putimage( 400, 50, imagen, COPY_PUT );
   putimage( 400, 110, imagen, COPY_PUT );
 
   getch();    /* Pausa */
   closegraph();
 
   free( imagen );
 
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h