 |
DrawIcon |
Function (ROM Call 0x1A6) |
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 (x, y)
using attribute Attr. Pointer
Icon is usually of type pICON (pointer to the
ICON structure). The following attributes are supported:
A_NORMAL | The icon is ORed into the destination |
A_REVERSE | The inversed icon is ANDed into the destination |
A_XOR | The icon is XORed into the destination |
A_SHADED | The 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