DrawMode property (ILEADRasterFXD)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short DrawMode

Overview

Refer to Drawing Simple Objects.

Remarks

Determines how each pixel of a drawing object is combined with the existing pixel on the target surface (the screen or bitmap, as specified by the DrawPersistence property).

For normal drawing, use DRAWMODE_COPY_PEN. The DrawPenColor property specifies the pen color. For rubberband-style interactive display, use DRAWMODE_INVERT (as shown in the code example).

Value

Description of the Resulting Pixel

DRAWMODE_BLACKNESS

Pixel is always black.

DRAWMODE_COPY_PEN

Pixel is the pen color.

DRAWMODE_MASK_NOT_PEN

Pixel is a combination of the colors common to both the target and the inverse of the pen.

DRAWMODE_MASK_PEN

Pixel is a combination of the colors common to both the pen and the target.

DRAWMODE_MASK_PEN_NOT

Pixel is a combination of the colors common to both the pen and the inverse of the target.

DRAWMODE_MERGE_NOT_PEN

Pixel is a combination of the target color and the inverse of the pen color.

DRAWMODE_MERGE_PEN

Pixel is a combination of the pen color and the target color.

DRAWMODE_MERGE_PEN_NOT

Pixel is a combination of the pen color and the inverse of the target color.

DRAWMODE_NOP

Pixel remains unchanged.

DRAWMODE_INVERT

Pixel is the inverse of the target color.

DRAWMODE_NOT_COPY_PEN

Pixel is the inverse of the pen color.

DRAWMODE_NOT_MASK_PEN

Pixel is the inverse of the DRAWMODE_MASK_PEN color.

DRAWMODE_NOT_MERGE_PEN

Pixel is the inverse of the DRAWMODE_MERGE_PEN color.

DRAWMODE_NOT_XOR_PEN

Pixel is the inverse of the DRAWMODE_XOR_PEN color.

DRAWMODE_WHITENESS

Pixel is always white.

DRAWMODE_XOR_PEN

Pixel is a combination of the colors in the pen and in the target, but not in both.

DRAWMODE_LAST

Last value (for testing a loop counter).

See Also

Topics:

Drawing Effects:3D Drawing Special Effects