DrawMode Property
Object List Next Object
Defined By: Form
Description:
Determines the appearance of output from graphics methods and the way the
color of a shape or line control will combine with the existing screen colors.
Settings:
Setting Description
- - Blackness Causes shapes and lines to be drawn in black.
- - Not Merge Pen Inverse of "Merge Pen" (15).
- - Mask Pen Not Mixture of the background color and the inverse of the pen, or FillColor.
- - Not Copy Pen Inverse of Copy Pen (13), or FillColor.
- - Mask Pen Not Mixture of the pen and the inverse display color.
- - Invert Inverse of the display color.
- - Xor Pen Mixture of the colors in the pen and the display color.
- - Not Mask Pen Inverse of Mask Pen (9).
- - Mask Pen Mixture of the colors in both the pen and the display.
- - Not Xor Pen Inverse of Xor Pen (7).
- - NOP No change to output.
- - Merge Not Pen Mixture of the display color and the inverse pen color.
- - Copy Pen (Default) Color specified by the FillColor property.
- - Merge Pen Not Mixture of the pen color and the inverse display color.
- - Merge Pen Mixture of the pen color and the display color.
- - Whiteness Causes shapes and lines to be drawn in white.
Please note that the pen color is the equivalent of the FillColor, and the
BackColor is the equivalent of the display color.
Details:
Use this property to modify the colors set by the FillColor, DrawColor,
BackColor properties to produce different effects when drawing with the graphics
methods. Phoenix Compares each pixel in the draw pattern to the corresponding pixel
in the existing background, and then it applies bitwise operations to make
changes to a shape or line's normal colors. For example, setting 7 (Xor Pen) uses
the Xor operator to combine a draw pattern pixel with a background pixel. This
will always invert the destination pixel when drawing in white.
Because it is difficult to envision the effects of these settings on a line or
shape's normal colors, it is best if you experiment with them on your own to
see the various result. Settings 1, 6, 7, 11, 13, and 16 seem to produce the
more predictable results.
Data Type: Enum (DrawModeType)
See Also:
DrawColor property, DrawStyle property, DrawWidth property, FillColor property, FillStyle property