This property sets how the color of the pen interacts with the color on the canvas.

[C++Builder]   imagekitcontrolname->PrintDraw->PenMode [ = short ]
[Delphi]   imagekitcontrolname.PrintDraw.PenMode [ = Smallint ]

Property Value

Value Explanation
1 Black (R2_BLACK)
2 The inverse of the combination of the pen color and the display color (R2_NOTMERGEPEN)
3 The combination of colors common to both canvas color and the inverse of the pen color. (R2_MASKNOTPEN)
4 The inverse of the color of the pen.(R2_NOTCOPYPEN)
5 The combination of colors common to both pen color and the inverse of the canvas color. (R2_MASKPENNOT)
6 The inverse of the color of the canvas. (R2_NOT)
7 The combination of colors in either pen or canvas, but not both. (R2_XORPEN)
8 The inverse of the combination of colors common to both pen and canvas. (R2_NOTMASKPEN)
9 The combination of colors common to both pen and canvas. (R2_MASKPEN)
10 The inverse of the combination of colors in either pen or canvas but not both. (R2_NOTXORPEN)
11 No change. (R2_NOP)
12 The combination of canvas color and the inverse of the pen color. (R2_MERGENOTPEN)
13 The pen color specified in the PenColor property. (R2_COPYPEN) Default value.
14 The combination of pen color and the inverse of the canvas color. (R2_MERGEPENNOT)
15 The combination of pen color and canvas color. (R2_MERGEPEN)
16 White (R2_WHITE)

( ) The explanation contained in the parentheses has the same meaning as the constants used by WindowsAPI


The following constants can be used: (vikPenModeBlack = 1, vikPenModeNotMergePen = 2, vikPenModeMaskNotPen = 3, vikPenModeNotCopyPen = 4, vikPenModeMaskPenNot = 5, vikPenModeNot = 6, vikPenModeXorPen = 7, vikPenModeNotMaskPen = 8, vikPenModeMaskPen = 9, vikPenModeNotXorPen = 10, vikPenModeNop = 11, vikPenModeMergeNotPen = 12, vikPenModeCopyPen = 13, vikPenModeMergePenNot = 14, vikPenModeMergePen = 15, vikPenModeWhite = 16)

Explanation

The PenMode property sets how the color of the pen interacts with the color on the canvas.

Setting this value

This value can be set at runtime.

Retrieving this value

This value cannot be retrieved.

Differences from ImageKit7/8/9/10 ActiveX

The VCL constants contain a "v". In ActiveX, the constants are: ikPenModeBlack, ikPenModeNotMergePen, ikPenModeMaskNotPen, ikPenModeNotCopyPen, ikPenModeMaskPenNot, ikPenModeNot, ikPenModeXorPen, ikPenModeNotMaskPen, ikPenModeMaskPen, ikPenModeNotXorPen, ikPenModeNop, ikPenModeMergeNotPen, ikPenModeCopyPen, ikPenModeMergePenNot, ikPenModeMergePen, ikPenModeWhite

The ImageKit10 VCL is a product created by Newtone Corporation