Vcl.Graphics.TPenMode
Delphi
TPenMode = (pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy,
pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge,
pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor);
C++
enum DECLSPEC_DENUM TPenMode : unsigned char { pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy, pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge, pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
TPenMode indicates how the color of a pen interacts with the color of a canvas.
TPenMode indicates how a pen color interacts with the color of the canvas it is writing on. The following table lists the possible values:
Mode | Pixel color |
---|---|
pmBlack |
Always black |
pmWhite |
Always white |
pmNop |
Unchanged |
pmNot |
Inverse of canvas background color |
pmCopy |
Pen color specified in the Color property |
pmNotCopy |
Inverse of pen color |
pmMergePenNot |
Combination of pen color and inverse of canvas background |
pmMaskPenNot |
Combination of colors common to both pen and inverse of canvas background |
pmMergeNotPen |
Combination of canvas background color and inverse of pen color |
pmMaskNotPen |
Combination of colors common to both canvas background and inverse of pen |
pmMerge |
Combination of pen color and canvas background color |
pmNotMerge |
Inverse of pmMerge: combination of pen color and canvas background color |
pmMask |
Combination of colors common to both pen and canvas background |
pmNotMask |
Inverse of pmMask: combination of colors common to both pen and canvas background |
pmXor |
Combination of colors in either pen or canvas background, but not both |
pmNotXor |
Inverse of pmXor: combination of colors in either pen or canvas background, but not both |