Specifies how the colors of a Shape object appear on the underlying surface.

Property of

Shape

Description

Use drawMode to create visual effects with the pen and brush (fill) colors of a Shape object.

dBASE Plus compares the colors specified by the colorNormal property of the Shape to the color of the underlying surface (usually a form), and renders a result according to drawMode.

In the table below, "Pen" refers to both the pen and brush colors of the Shape. "Merge" (bitwise OR), "Mask" (bitwise AND), and "XOR" indicate the type of bitwise operation to be performed on the pixel RGB values of the "Pen" and the drawing surface, while "NOT" means the operation involves the inverse, or complement (color negative), of one or both colors.

You can specify any of these settings for drawMode:

Value

Description

0 – Normal

Color specified in the Shape colorNormal property (100% opacity)

1 – Inverse

Inverse (color negative) of the drawing surface color. Note: this setting disregards the Pen color.

2 – Merge Pen NOT

Combination of the Pen color and the inverse of the drawing surface color

3 – Mask Pen NOT

Combination of the colors common to both the Pen and the inverse of the surface

4 – Merge NOT Pen

Combination of the surface color and the inverse of the Pen color

5 – Mask NOT Pen

Combination of the colors common to both the surface and the inverse of the Pen

6 – Merge Pen

Combination of the Pen color and the surface color

7 – NOT Merge Pen

Inverse (color negative) of Merge Pen

8 – Mask Pen

Combination of the colors common to both the Pen and the surface

9 – NOT Mask Pen

Inverse (color negative) of Mask Pen

10 – XOR Pen

Combination of the colors in the Pen and the surface, but not common to both

11 – NOT XOR Pen

Inverse (color negative) of XOR Pen