[Previous] [Contents] [Next]

my_setdrawmode()

define the drawing mode for subsequent draw operations

Synopsis:

void my_setdrawmode( int mode );

Description:

This function sets the drawing mode for subsequent draw operations. In the table below, "source" refers to what has already been rendered, and "destination" to what is about to be rendered.

mode Meaning Result
0 OPAQUE destination
1 XOR destination ^ source
2 AND source & destination
3 OR source | destination
4 COPYINV ~destination
5 XNOR source ^ (~destination)
6 ANDINV source & (~destination)
7 ORINV source | (~destination)
8 CLEAR Nothing
9 NO-OP Null operation
10 ANDREV (~source) & destination
11 ORREV (~source) | destination
12 SET 0xFF (maximum value)
13 INVERT ~source
14 NOR (~source) & (~destination)
15 NAND (~source) | (~destination)

By default, this function sets the drawmode member of the _doc_ctrl structure. This member is used by _Rect() to determine how to draw.

Classification:

Photon

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

[Previous] [Contents] [Next]