DrawIcon Function (ROM Call 0x1A6)

graph.h

void DrawIcon (short x, short y, const void *Icon, short Attr);

Draws an icon.

DrawIcon draws an icon (a 16x16 bitmap structure given as 16-word group of bits) pointed to by pointer Icon at location (xy) using attribute Attr. Pointer Icon is usually of type pICON (pointer to the ICON structure). The following attributes are supported:

A_NORMALThe icon is ORed into the destination
A_REVERSEThe inversed icon is ANDed into the destination
A_XORThe icon is XORed into the destination
A_SHADEDThe icon is masked so that every other pixel is turned off then ORed into the destination

See SetCurAttr command for more general info about attributes.

Note: In previous releases of TIGCCLIB (prior 2.0) the documentation said that A_REPLACE attribute is supported. Unfortunately, it seems that this is not true (Daniel Pineo informed me about this problem). Also, information about usage of A_REVERSE was incorrect.


Uses: DrawPix


See also: sprites.h