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


  1. - Blackness Causes shapes and lines to be drawn in black.

  2. - Not Merge Pen Inverse of "Merge Pen" (15).

  3. - Mask Pen Not Mixture of the background color and the inverse of the pen, or FillColor.

  4. - Not Copy Pen Inverse of Copy Pen (13), or FillColor.

  5. - Mask Pen Not Mixture of the pen and the inverse display color.

  6. - Invert Inverse of the display color.

  7. - Xor Pen Mixture of the colors in the pen and the display color.

  8. - Not Mask Pen Inverse of Mask Pen (9).

  9. - Mask Pen Mixture of the colors in both the pen and the display.

  10. - Not Xor Pen Inverse of Xor Pen (7).

  11. - NOP No change to output.

  12. - Merge Not Pen Mixture of the display color and the inverse pen color.

  13. - Copy Pen (Default) Color specified by the FillColor property.

  14. - Merge Pen Not Mixture of the pen color and the inverse display color.

  15. - Merge Pen Mixture of the pen color and the display color.

  16. - 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