| WinBitmapPut | Function (ROM Call 0x7)

wingraph.h

void WinBitmapPut (WINDOW *w, short x, short y, void *BitMap, short Attr);

Puts a bitmap to a window.

WinBitmapPut puts a bitmap BitMap (which was taken using WinBitmapGet) to the window pointed to by w at the position (x, y), using the attribute Attr. The coordinates are relative to the topleft corner of the window pointed to by w. The drawn bitmap will be clipped at the boundaries of the clipping area of the window. The following attributes are supported:

A_REPLACE | Replace the destination region with the source bitmap
A_REVERSE | Replace the destination region with the inverse of the source bitmap
A_XOR | Exculsive-OR the source bitmap into the destination region
A_OR | OR the source bitmap into the destination region
A_AND | AND the source bitmap into the destination region
A_SHADED | Mask the source bitmap so that every other pixel is turned off and replace the destination region with that result (the source region is left unchanged)

See WinAttr command for a more general info about attributes.

Uses: BitmapPut, PortRestore, ROM Call 0x413
Used by: cmd_andpic, cmd_cyclepic, cmd_rclpic, cmd_rplcpic, cmd_xorpic, EV_defaultHandler, GD_Eraser, EV_quit, GS_PlotAll, GT_Open, GT_WinCursor, Regraph, ROM Call 0x45B