DrawMode Property

Object List Next Object

Defined By:
Drawable

Description:

Determines the way output from graphics methods will look and the way the color of a shape or line 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 colors common to the background and inverse pen, or FillColor.

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

  5. - Mask Pen Not Mixture of the colors common to the pen and inverse display.

  6. - Invert Inverse of the display color.

  7. - Xor Pen Mixture of either the colors in the pen or the inverse display color.

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

  9. - Mask Pen Mixture of the common colors to the pen and 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 and display colors.

  16. - Whiteness Causes shapes and lines to be drawn in white.

Note that the pen color is the equivalent of the DrawColor, and the BackColor is the equivalent of the display color.

Details:

Use this property to modify the colors set by the FillColor, DrawColor, and BackColor properties to produce different effects when drawing. Phoenix compares each pixel in the shapes and lines you draw to the corresponding pixel in the current background. After Phoenix completes the comparison, it applies bitwise operations to make the designated changes to a shape or line's normal colors. For example, to invert the destination pixel when drawing in white, use setting 7 (Xor Pen). The Xor operator combines the pixel in a shape or line with a background pixel.

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. For more predictable results, use settings 1, 6, 7, 11, 13, and 16.

Data Type: Enum - DrawModeType

See Also:

DrawColor property, DrawStyle property, DrawWidth property, FillColor property, FillStyle property