TPenMode indicates how the color of a pen interacts with the color of a canvas.
TPenMode = ( pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy, pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge, pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor );
enum TPenMode { pmBlack, pmWhite, pmNop, pmNot, pmCopy, pmNotCopy, pmMergePenNot, pmMaskPenNot, pmMergeNotPen, pmMaskNotPen, pmMerge, pmNotMerge, pmMask, pmNotMask, pmXor, pmNotXor };
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 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 |
|
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|