DRAWMODE Property
PLBCMP GUI Only
The DRAWMODE property specifies how colors from the SHAPE or LINE object and the colors in the existing presentation image are combined. The property uses the following format:
DRAWMODE={value}
Note the following:
DRAWMODE may be used in CREATE, SETPROP, or GETPROP statements of a SHAPE or LINE object.
{value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:
|
Value |
Keyword |
Pixel is ... |
|
0 |
$NONE |
same as (default). |
|
1 |
$BLACKNESS |
always 0. |
|
2 |
$COPYPEN |
the pen color. (default) |
|
3 |
$INVERT |
the inverse of the screen color. |
|
4 |
$MASKNOTPEN |
a combination of the colors common to both the screen and the inverse of the pen. |
|
5 |
$MASKPEN |
a combination of the colors common to both the pen and the screen. |
|
6 |
$MASKPENNOT |
a combination of the colors common to both the pen and the inverse of the screen. |
|
7 |
$MERGENOTPEN |
a combination of the screen color and the inverse of the pen color. |
|
8 |
$MERGEPEN |
a combination of the pen color and the screen color. |
|
9 |
$MERGEPENNOT |
a combination of the pen color and the inverse of the screen color. |
|
10 |
$NOP |
unchanged. |
|
11 |
$NOTCOPYPEN |
the inverse of the pen color. |
|
12 |
$NOTMASKPEN |
the inverse of the $MASKPEN color. |
|
13 |
$NOTMERGEPEN |
the inverse of the $MERGEPEN color. |
|
14 |
$NOTXORPEN |
the inverse of the $XORPEN color. |
|
15 |
$WHITENESS |
always 1. |
|
16 |
$XORPEN |
combination of the pen color and the screen color but not in both. |
This property is not available when using the PL/B Web Server.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |