TCopymode type
Type used to represent canvas copy modes.
Declaration
TCopymode = LongIntDescription
TCopyMode is an alias for the
LongInt type. TCopyMode is
the type used to implement the
CopyMode property in
TCanvas. Normally contains a value defined in the copy mode
constants:
- cmBlackness
- Fills the destination rectangle with the first color in the physical palette. (Black for the default palette).
- cmDstInvert
- Inverts colors in the destination rectangle.
- cmMergeCopy
- Merges colors from the source rectangle with the brush color.
- cmMergePaint
- Merges inverted colors from the source rectangle with the colors in the destination rectangle using an OR operation.
- cmNotSrcCopy
- Copies inverted colors from the source rectangle to the destination rectangle.
- cmNotSrcErase
- Combines the colors from the source and destination rectangles using an OR operation, and inverts the result.
- cmPatCopy
- Copies the brush into the destination rectangle.
- cmPatInvert
- Combines the brush colors with the colors in the destination rectangle using an XOR operation.
- cmPatPaint
- Combines the brush colors with the inverted colors from the source rectangle using an OR operation, and combines the result with the colors in the destination rectangle using an OR operation.
- cmSrcAnd
- Combines colors from the source and destination rectangles using an AND operation.
- cmSrcCopy
- Copies the source rectangle to the destination rectangle.
- cmSrcErase
- Combines the inverted colors in the destination rectangle with the colors from the source rectangle using an AND operation.
- cmSrcInvert
- Combines the colors in the source and destination rectangles using an XOR operation.
- cmSrcPaint
- Combines the colors in the source and destination rectangles using an OR operation.
- cmWhiteness
- Fills the destination rectangle using the second color in the physical palette. (White for the default palette).
The default value for the propriety is cmSrcCopy.
Copy mode constants are omitted for the CAPTUREBLT and NOMIRRORBITMAP values used in the Windows GDI API.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
